Refers to a box-like reusable user-interface component common in the WordPress backend.
1
vote
1answer
139 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
0answers
27 views
Wordpress metaboxes sorting and replication
I am not an experienced developer with Wordpress. I'm working on the development of a wordpress app for a manufacturing process. Every product has certain no.of stages and a single stage can be ...
0
votes
1answer
115 views
Metabox does not show in custom post type
I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
0
votes
1answer
141 views
Help integrating Custom post type meta field with custom profile fields
I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them.
I have added some spots to the profile using ...
0
votes
1answer
320 views
Advanced Custom Fields Array Population
I'm trying to populate a ACF select field with an array from a custom $wpdb->get_results call, which is essentially a list of categories from my db.
I have the following:
global $wpdb;
...
0
votes
0answers
15 views
How to separate metabox data in front/backend
I just created a kind of long metabox using a tutorial at wptuts but I am lost in two things:
The output of the metabox displays all data grouped (ex. in grouped checkboxes they are all in a whole ...
0
votes
1answer
167 views
save_post action inside a custom metabox class not working
I am writing a class to create metaboxes and save the form data. The problem is, I keep getting a warning when I click "publish":
Warning: call_user_func_array() expects parameter 1 to be a valid ...
0
votes
1answer
155 views
Plugin admin page meta_box toggle and order state not saving
I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0
I'm using meta boxes to hold sections of menu for a plugin.
...
0
votes
1answer
22 views
Remove Custom Taxonomy Metabox from Custom Post Type Screen
I have two hierarchical custom taxonomies, each on a corresponding custom post type. I would like to remove the metabox for each on the post type's edit screen.
I have read remove custom taxonomy ...
0
votes
1answer
30 views
Get a different size of Image thumbnail While working with custom metabox
I am using custom metabox for a page in my new project, I am using it for uploading image, and attaching it to the page. It's working fine, I can select image or upload the image using WordPress' ...
0
votes
0answers
43 views
Reload meta box content with AJAX
I want to build a meta box that contains multiple textfields which get filled if a submit button is pressed.
The data is set by a function which should get called if the button is pressed.
How can I ...
0
votes
1answer
148 views
Wordpress metaboxes - textfield suggestion automatically populated
[Long story short]
Is there any Wordpress plugin/function that would allow the creation/integration of a metabox's textfield that automatically populates a dropdown menu (in the admin area, while in ...
0
votes
1answer
10 views
header specific meta box result detect url
I've got 3 header.php files and 1 detects whether their either on page 1 or page 2. I have a custom meta box thats outputting the results onto each header - that all works fine.
However when I go a ...
0
votes
1answer
19 views
Add metabox without the container
I want to add a second input identical in design/functionality to the Title text input, directly beneath it.
I can use
add_meta_box('catchy_title', 'Short Title', array('catchyTitle', ...
0
votes
2answers
240 views
Include custom fields into the content of a regular page
Here's my setup:
Parent "Gallery" page: _regular page, not custom type or anything _
Several "Project" child pages (could be as few as 1, unlimited
number): also normal pages
Child pages will ...
0
votes
1answer
216 views
wp list pages using meta box value
I am using the following meta boxes on services page but how would I get the page(s) which have value of this meta box?
For example, list all pages where service_type = 'web'
I am using the ...
5
votes
4answers
1k views
WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
3
votes
1answer
792 views
Custom Meta Boxes: multiple fields within a repeatable field
I am working on a meta box for events. Each event has it's own page with a meta box for the line-up, background image, tickets page URL and some text.
To create the line-up I would like to use the ...
0
votes
1answer
136 views
Change Default Custom Fields Metabox Name on cctm plugin
i found this thread Change Default Custom Fields Metabox Name
and i also want to change this cctm plugin generated Custom Field header to something else,so i tried to add
global $wp_meta_boxes;
...
0
votes
1answer
211 views
Checkbox in post not saving value
I have a checkbox above my metabox in a custom post. When I check it and publish/update the post, it become unchecked again meaning it's not saving it's value. Here is my code for the checkbox:
...
0
votes
2answers
300 views
How to make a metabox that contains link categories?
I'm looking for some suggestions or tutorial links about how to create a meta box that allows users to choose from a list of link categories. So far I've been looking at this post about taxonomies in ...
0
votes
1answer
30 views
How to callback custom field text
I have a plugin where the user can click a button to feature a post.
I added a text field but i want the text field to call back whatever is posted in it
Here is how it looks now
...
0
votes
0answers
22 views
Page vs Custom Post Type - which to use [duplicate]
I am creating a few pages (Company, Offices, Contact) and would like to have custom meta boxes for each of those pages. I want the meta boxes to be different for each page, and I don't know if that is ...
1
vote
1answer
50 views
Customize Plugin
I am trying to create custom welcome panel in dashboard for WP and can't see where I went wrong. It's not allowing me to add html.
0
votes
2answers
128 views
How to query custom post then display sections by meta value
This seems like an easy thing to do but I am missing something here. I have a custom post type called "recipient" and a meta check box called "yes_current" - (we help children with cancer and run ...
0
votes
2answers
45 views
Modifying the main editor priority
I want the main WordPress post editor to appear below some of my meta boxes (generated by Advanced Custom Fields).
I know there are the add_meta_box() and remove_meta_box() functions, however it'd be ...
-5
votes
0answers
14 views
Adding sections with different shortcodes in a single meta box [closed]
I want to create a meta box with 3 different sections, one with 2 fields other 3 and last with 4 fields.
I will be adding different shortcodes for each section so i can use data from each section in ...
4
votes
1answer
296 views
What is the index [0] for on post meta fields?
Trying to improve my PHP knowledge through test and try! I am confused on [0] arguments at following WordPress PHP code
global $post;
$custom = get_post_custom($post->ID);
$price = ...
0
votes
1answer
277 views
Add Standard Page Attributes Metabox for Page Parent
I have a custom post type 'product' supplied to me by a Wordpress eCommerce plugin that does not offer the option to change the Page Parent in the Page Attributes Metabox. I'd like to remedy that.
I ...
0
votes
1answer
30 views
Problem for recover and save metaboxes
I create metaboxes but i can´t save data and also no show data insert into field , this is my code
<?php
function reaction_buttons_meta2()
{
global $post;
echo ...
0
votes
1answer
37 views
Problem with $post_id object's property
Dealing with retrieving CPT metadata I find out two methods get_post_meta() and get_post_custom() to return the value(s) of the custom fields with the specified key from the specified post. Both ...
0
votes
1answer
264 views
Loop with slider (slider not loading)
In my slider.php I have a loop that calls for a custom post type. That custom post type has a meta box for a slide url (link/title/etc). I can see the loop and everything else is working because in ...
0
votes
1answer
820 views
How to Create Dynamic Fields in a Meta Box?
Could someone explain me with a little example how create a button that creates a new custom field dynamically?
I'm working on a plugin and using add_meta_box, I need an input box ...
0
votes
1answer
89 views
Taxonomy as checkboxes
So I'm trying to get Wordpress to display the categories as a series of select boxes in a custom meta box and am using some examples from this tutorial, but when I go to save the selection it ...
0
votes
1answer
256 views
Why my meta boxes won't show in front post page?
I see it everywhere: in single post, in category archives etc, but in front page post not.
I display the metaboxes in this way:
<?php if (get_post_meta($post->ID, 'test_1', true) != '' ) { ...
3
votes
4answers
3k views
Tinymce/Wordpress is removing all line-breaks?
In my wordpress theme, I have a custom options panel with textareas that utilize the tinymce script included with wordpress.
This was working fine until I upgraded to the latest version of wordpress ...
0
votes
1answer
444 views
Repeatable custom meta fields
I am working on creating custom meta boxes for the back-end of WordPress.
I would like to add a metabox with several fields, in my case an image upload and a text input, but with a button that can ...
1
vote
3answers
133 views
Wordpress 3.5 Media Uploader - Only allow 1 upload and certain file types
I am trying to include the new WP Media Uploader in a Custom Meta Box.
I found this tutorial:
http://codestag.com/how-to-use-wordpress-3-5-media-uploader-in-theme-options/
However i am looking for ...
0
votes
1answer
103 views
How To Display A List Of CPT Posts In A Meta Box On Menus Page?
Is it possible to display a list of the custom post type POSTS, not archive link, inside a meta box on the nav menus page?
Currently, it displays each CPT post inside it's own metabox, but I would ...
1
vote
3answers
1k views
How to add meta box to backend menu page
I need to add a meta box to the backend menu page, in Appearance->Menus (/wp-admin/nav-menus.php), to list all the available post types, both the defaults & the custom ones.
It will contain a ...
1
vote
3answers
1k views
How to display non-hierarchical taxonomy as terms with checkboxes?
I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
0
votes
1answer
156 views
How to set/change another post author by custom fields or something else?
I need help! (sorry for my poor English, I'm from Russia)
How I can to set/change another post author by custom fields or something else?
For example:
I want to public post, but define another post ...
0
votes
2answers
48 views
How to Display Custom Meta Box only on Specific Page IDs
I am using Magic Fields 2 for custom meta boxes and custom fields, but this situation pertains to any meta box.
I have a custom meta box that I want to display on only 3 specific page IDs.
function ...
0
votes
1answer
71 views
input radio 'checked' saves, but select option 'selected' doesn't
So I followed a tutorial on how to create a meta box w/ the taxonomy terms shown in radio buttons. (Tutorial here for others if interested: ...
0
votes
1answer
277 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
0answers
33 views
Select Options Meta Data is Not Updating in Edit Meta Box
I have a Meta box with two user inputs 1: Text-field and 2:a Select drop Down options. I used following Save Method in mt Meta box and second part of the code belong to saving the Selected option from ...
0
votes
1answer
142 views
Displaying Meta Box Image
I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart.
I'm able to display the textfields using ...
1
vote
1answer
27 views
How to use MarkDown in a custom textarea field?
I've created a custom metabox with a textarea in it. How would I go about using Markdown in this textarea? I've seen some WP plugins but they seem to only be for the main editor.
0
votes
1answer
28 views
Problem On Retrieving Post Meta Data on Custom Column [closed]
I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
0
votes
0answers
22 views
Return to Post Editing Screen after a bulk action from the Custom Meta Box
Trying to adapt Custom List Table Example plugin for my own needs.
Here the page field is responsible for specifying the plugin page to which the form containing List Table posts to:
<form ...
