Tagged Questions
0
votes
1answer
25 views
Where can I find the code for the menu page meta boxes?
I want to add a meta box to the menu page. More specifically I want to basically clone the pages or category meta box and have it load the items into the list from a meta key, instead of pages or ...
3
votes
1answer
81 views
Adding another state (spam, reject, approve) to wordpress comments?
i know this might sound a bit weird, but what I'm trying to do is rather simple in mind but may be technically difficult.
I'm running small contests on my wordpress site where I ask users to leave a ...
1
vote
0answers
64 views
metabox / select custom post in custom post list to display metavalues only the selected cpt
So i have a "select post field" in a dropdown list to select "artist custom post" on a "gallery custom post" and i want to display the photos (from my gallery custom post) only on the selected ...
0
votes
0answers
28 views
Check Types custom checkbox and metadata when publish post
I´m using Types to create metaboxes with custom checkboxes to make some custom functions. The problem I have is with this function I created:
function check_zone_tag(){
$postid = get_the_ID();
...
1
vote
1answer
123 views
Better Method for Multiple Meta Boxes
I'm learning about meta boxes and have gotten them to appear on my local dev, but I can't figure out how to avoid creating new functions for saving multiple meta boxes.
I assume that I could call an ...
0
votes
2answers
62 views
How can I hide custom field from users used for caching response from external api?
I have a custom meta box created using Rilwis meta box script(http://www.deluxeblogtips.com/meta-box/) inside my theme functions.php.
It has 2 text fields, one field is required to fetch results from ...
0
votes
1answer
81 views
Need Advice to Working with Custom Post Meta
I'm working with some quiz script which is using javascript to init the script, the data structure which I working on is look like this
var quizArray = { 'contents': [{
'question': 'First ...
0
votes
1answer
268 views
problem saving/ retrieving custom meta with wp alchemy metabox
I am using WPalchemy metabox class to add a extra meta field to the pages editor which will allow me to attach galleries to pages. I use the class:
$gallery_metabox = new WPAlchemy_MetaBox(array(
...
0
votes
2answers
225 views
Meta Box Plugin Cloned Fields - Multiple Foreach values
I have the following code that I can't get working. I have two cloneable fields that are being output as one entity (URL and thumbnail image). These are cloned fields using the Meta Box Plugin by ...
2
votes
1answer
147 views
Using Custom Posts with Metaboxes and Drop-downs
When using Custom Posts and adding a Metabox, I was wondering how I could add a drop-down menu that would populate data that was added by the user.
For example I want to be able to select a 'source' ...
0
votes
1answer
183 views
I need a “Choose from existing content” popin
I'd like to create a field that allows the admin to select from other existing post types. Specifically, I want to create an options box to choose which events display on the homepage.
For now, I've ...
0
votes
1answer
594 views
Use a shortcode to display custom meta box contents
Is this possible? If so, can someone point me towards a clear tutorial? I have a column of content I want to float right of the_content, so I'd like to be able to use a shortcode to put that content ...
0
votes
1answer
565 views
Multiplile values checkbox or select in custom meta box
I have followed the great answer by Jan Fabry in this question .
How to make multicheck for post/page meta box
this works great. My question though would be , what if someone WANTS a serialized ...
0
votes
2answers
618 views
Dynamically add / duplicate custom meta in custom post types
I am using Custom post types in one of my themes
I have one custom post type called "accommodation" with meta boxes to add details such as type of rooms (single, twin, double...); each room has a ...
3
votes
2answers
610 views
How to force one column layout on custom post type edit page?
I've created a plugin using custom post types and I need to force the default two column post page to a single column. At the same time, the Publish metabox must move to the bottom. I need to do this ...
-1
votes
1answer
104 views
Checkbox on a custom menu [closed]
I have this code on a custom menu:
<form method="post" action="options.php">
<?php wp_nonce_field('update-options') ?>
<input type="checkbox" name="myoption[option_one]" ...
0
votes
2answers
171 views
Make separate text boxes for separate WordPress Custom Fields
I am trying to make usability of WordPress custom fields admin easier in my theme. I saw it in ElegantThemes' eStore theme. Only I couldn't figure out how to do it in my custom theme because I ...
0
votes
1answer
508 views
Let's Create Custom Field Template Documentation
I've been using the Custom Field Template plugin for a while now, and I really like it. It's fantastic for adding quick custom field meta boxes in the wordpress back end. It handles TinyMCE, file ...
1
vote
1answer
625 views
Automatically exclude categories from metabox based on title
I am designing a website which will be used as a school PA system. Users will be posting entries into categories named for specific dates that correspond to school assemblies. We have two assemblies a ...
0
votes
1answer
2k views
How to add a select menu to this metabox code?
I'm using a metabox script that works great for having absolute control over the design and placement of the metabox fields. There is one problem: I can't remember where I found the script and need to ...
0
votes
1answer
2k views
I'm using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
I'm using a very lightweight plugin called WPAlchemy that lets me rapidly create meta-boxes for posts and pages. I've ben able to convert <textarea>'s into rich, TinyMCE's editors just fine. ...
0
votes
1answer
650 views
Add a custom field when adding / editing a page / post in admin panel
I create a new theme and I the page / post is divided to:
Title
Slogan
Content
I want to add a slogan field in the admin panel, where the user adds or edits a post or page.
After I will use in ...
1
vote
3answers
256 views
Is it possible to create relational metabox values in a custom post?
I have a custom post type ('Model') for a sports modelling agency, and it requires the model to enter sports they are competent at, and also rank their ability from 1 to 5. For example, given the ...
3
votes
3answers
2k views
Make Custom Metaboxes Collapse by Default
I've created some custom metaboxes for my post write screen. Is there any way to make some of them display collapsed by default?
Just in case I'm not using the correct terms or not being clear in ...
0
votes
1answer
305 views
Placing Admin Post Metaboxes in Tabs
I am looking for what code one would need to add into the functions.php file which would allow specific metaboxes to show up in tags instead of within their individual metaboxes. Can anyone help with ...
4
votes
3answers
1k views
Removing Metabox for “Slug” without removing functionality
Here is an interesting question.
I have recently noticed that if you utilize the code
remove_meta_box('slugdiv', 'post', 'normal');
you are actually unable to modify the slug when you click on ...