Refers to a box-like reusable user-interface component common in the WordPress backend.

learn more… | top users | synonyms (2)

0
votes
2answers
26 views

Access meta box checked value in another file

So basically I need to access the value of checked() in order to load diferent template parts in my single.php file. This is my meta box: <?php function ...
0
votes
1answer
142 views

Load different single.php templates according to post layout selection

I have created a way of choosing different layouts for posts(sidebar right, sidebar left, full width). This is done through a meta box that displays radio buttons with an image for each layout type. ...
0
votes
0answers
155 views

How to make multiple upload meta boxes in custom post type

First question here. Been spectating for a while. Great community. I've been writing a simple plugin to add an upload metabox to my custom post type 'video'. I can make the first upload field work. ...
0
votes
0answers
19 views

Conditional metabox jquery

I have a metabox where I am trying to hide a div inside of it whenever a option is selected, I also have another area but with radio buttons (separate div). Issue The issue I am running into is the ...
1
vote
1answer
34 views

Is it possible to sort metabox teaxtarea values?

Textarea is on an options page, is it possible to sort the values within that textarea by alpha? I looked in the Codex but do not see any mention of sorting these values.
0
votes
1answer
35 views

Create a select metabox that the user can pupolate?

I have been working on a plugin that uses text area metaboxes on an options page to populate drop downs in the CPT area. I was with the help of some others able to get the list to show in the select ...
0
votes
1answer
36 views

Display custom meta on page that has been check in custom post type

I have created a custom post type (cpt) and within each post type is a custom meta field. This custom meta field displays all the pages that can 'checked'. Code to generate the custom meta box: /...
0
votes
0answers
33 views

Add Postbox for Featured Image Caption in wp-admin/post-new.php

I'm newbie here. I want to add postbox / meta box in my wp-admin/post-new.php page. Someone please help me. Last days i have try to search it in any tutorial, but i cannt solve it. I try to modify ...
0
votes
3answers
53 views

Where WordPress Stores The Custom Fields Values

I have a custom Post type called product which has a Methabox with a Custom Field Called Price I entered $ for some of the products and I need to remove them from the WP table. Now can you please let ...
0
votes
1answer
81 views

How do I make this Metabox show current DB value?

<p> <?php $options = get_option( 'city' ); $names = explode( PHP_EOL, $options ); ?> <label for="City" class="timeshare-row-title"><?php _e( '...
0
votes
0answers
31 views

metabox inside custom post

i'm trying this to add metaboxes inside custom post but never show the metabox Function Reference/add meta box « WordPress Codex Example: But never show this inside custom type post, Only inside ...
0
votes
0answers
19 views

Are labels required for making a metabox

I'm a noob so I apologize if this is a dumb question. I read through all of the metabox documentation plus blogs but didn't see an answer. Is it mandatory to include a label for a metabox? For ...
0
votes
0answers
42 views

Metabox is not saving

Any idea, how I would get this to save? I have several select boxes that are done with the standard option statement. This one has me stumped on how to get it to save. <p> <?php $options ...
0
votes
0answers
37 views

select metabox not saving selection

The code below reside in my plugin.php file, the select box populates fine from the options text area but does not save the chosen value. do not understand why. <p> <?php $...
1
vote
0answers
121 views

How to make custom taxonomy into drop down select in a custom metabox

I have a custom post type that I am creating custom meta boxes for on the "Add New Post" screen. I would like to remove the default meta boxes for a given custom taxonomy and place it in a drop down ...
0
votes
0answers
14 views

All Metaboxes on position 'side'

I added a few custom metaboxes to my custom post type. I did add one of them with position 'side', but to others I said 'normal'. Now all the metaboxes are showing up on side, even the ones which ...
0
votes
0answers
20 views

Metabox values are empty on POST

I've created a metabox for my custom posttype for a shopping plugin. But right now I have some troubles saving the data. This is my metabox view: function wpt_products_price() { global $post; ...
1
vote
3answers
313 views

Why does get_post_meta not work with the posts page?

Looking for a reason why get_post_meta() doesn't work with home.php. From my reading I understand that it's a template and not a post or page, per "Custom fields won't display on my blog page". The ...
0
votes
0answers
28 views

Plugin dev: How to multiply instances of a plugin in the same metabox?

I have a picture uploader that fits inside a metabox in the administration. I would like to have four instances of this uploader in the same metabox in order for the administrator to manage 4 ...
0
votes
0answers
46 views

Create new sidebars trough admin post/page metabox

I have this bit to register sidebars dynamically: function my_custom_sidebars() { $sidebars = get_option('my_theme_sidebars'); // get all the sidebars names if ( ! empty($sidebars) ) { // add a ...
0
votes
1answer
313 views

Display meta box on front end

I'm trying to add a meta box into a custom post type and display the text on the front end. I made a meta box as follows: array( 'name' => __( '<b>Schema</b>', 'themeum-soccer'),...
0
votes
0answers
83 views

MetaBox autocomplete field with another custom post type?

I am using the MetaBox.io plugin and creating a post type called "Book" which I am trying to relate to another custom post type called "author". How can I create a custom field for Books that would ...
0
votes
0answers
34 views

Query and compare multiple meta values

The problem: I have a custom post type of 'events' which has two metaboxes: cf_eventdate and cf_eventend. The first contains the event date, in the format: 2015-11-05. The second contains the end ...
1
vote
0answers
83 views

wp_editor in metabox not working

So, I've created a meta box within my page to allow my client to be able to add content into multiple different content blocks dynamically. I've done that using the wp_editor function like so. ...
0
votes
1answer
132 views

How can I output WPAlchemy repeating fields meta values in my page template?

I have a custom post type, Downloads, which contains some custom metaboxes, including a repeating field. I'm able to output the values for all of them in my page template, but I'm not able to output ...
0
votes
0answers
67 views

Custom drop down meta box not saving

I'm really struggling with my drop-down meta box. I created a custom post type, and am in the midst of creating shortcodes for recent posts, all posts and now featured posts. I created a custo ...
0
votes
2answers
83 views

Only allow one meta key value per post in a category

I have created a meta box for a theme I am working on, it is a simple meta box with a check box for featured post. The problem is user can tick that check box for multiple posts in the same category. ...
1
vote
0answers
27 views

Adding Page Templates to post but it ignored it

I follow the post to add the template metabox to a custom post type's editor, but it doesn't work. When I visit the post, it shows "NOT FOUND ANY POST" which looks like index.php or single.php ...
0
votes
0answers
21 views

create custom field dropdown

so far I'm using custom field on my theme to display dynamic content, for example: <?php echo get_post_meta( get_the_ID(), 'product', true ); ?> <?php echo get_post_meta( get_the_ID(), '...
0
votes
0answers
23 views

Meta Box not being added in plugin

I am attempting to create a simple oop plugin that registers a few custom post types and then adds meta boxes to that custom post type. It is currently adding the post type but it's not adding the ...
0
votes
0answers
22 views

Media uploader metebox

I have this code for adding your own metabox. It is to add custom metabox media uploader. I can not show in the template gallery. How to view the gallery in single.php? Thanks. define('...
0
votes
1answer
18 views

Alter add_meta_box

I am trying to create a custom post type (through a plugin). The post type must be pretty similar to a page, so I would like to load meta boxes from other plugins and theme in my custom post type. I ...
0
votes
0answers
73 views

How to export data from a custom Meta Box added into categories

I have a custom meta box (text input) in the categories to insert the 'Meta Description', and when I export the data by using Tools > Export, this meta box is not exported. Actually, the content of ...
0
votes
0answers
58 views

How to call metabox value in custom post type query shortcode?

I am trying to make a testimonial shortcode. That is why I registered a custom post type and now trying to call it using shortcode. I also create a custom metabox for testimonial client country input. ...
1
vote
0answers
36 views

Is there a way to display metabox in frontend? How?

I was wondering if there is a way how to show the metabox in frontend. What i want to achieve: I want to be able to use the metabox to edit posts from frontend the same way i do it from backend. ...
0
votes
1answer
48 views

Metabox Keeps Stripping Parts of Shortcode

I am creating a custom metabox, and it will be filled with shortcode. The problem is, after I saved it, it keeps stripping / deleting the last part of the shortcode, like this: Suppose to be: [...
2
votes
1answer
194 views

Adding Metaboxes - so much code is there a shorter DRY way?

I added the following two metaboxes to my functions.php file and it works, but it's a lot of code. Question: Is there a shorter or simple way to do this without a plugin? /** * Add custom fields ...
0
votes
0answers
21 views

Change the priority of multiple custom taxonomy metaboxes

This question has been answered here... Changing the priority of a custom taxonomy's metabox But I need more clarification... How does this work for multiple custom metaboxes? Let's say the ...
0
votes
1answer
82 views

Wordpress from url get external source title

Hi I am building a news website. I am trying to automate it. News url (metabox) Title Content area Image (featured image option on wordpress) When paste the site url I would like the other ...
0
votes
0answers
39 views

Checklist of all posts from a custom post type in a metabox

Suppose i have a custom post type named "product". i want a metabox where all the post title of product custom post type that is already published is shown with a checkbox. how can i make this and ...
0
votes
0answers
43 views

Meta values not returning in Meta Box

One of the custom meta boxes I added to a custom post type portfolio isn't displaying the values in the corresponding fields in the metabox. However, they are being saved and can be retrieved using ...
0
votes
2answers
15 views

Adding metaboxes to attachment pages

My script cannot save the value of the dropdown box. I could not find any helpful documentation on this topic, so I have decided to ask the StackExchange community about it. function ...
0
votes
1answer
508 views

Parent Page and Breadcrumb URL's for Custom Post Types Not Working

What I Have Set Up I have three custom post types, they are named "brands", "careers", and "news". I have three page templates, they are named "page-brands", "page-careers", and "page-news". The ...
0
votes
3answers
393 views

Set the default value as checked for a meta box checkbox

This is code generated here and I made a few very small adjustments for customization. The problem I'm having is that I can't get the default value for the checkbox to be checked. If I manually add ...
0
votes
2answers
52 views

Remove All in One Seo from Posts for Contributors

I am using latest version of All In One Seo Package. How can I remove metaboxes from posts for User Role: "Contributors"?
0
votes
0answers
53 views

Wordpress create simple input meta box

Hi i have a code that adds radio buttons on the post editor page i need to create simple text or textarea meta boxes. I am sure a little editing will do from the code below. Thanks in advance. <?...
1
vote
1answer
23 views

Decide Metabox Configurations for All Users

How can I decide the metabox configurations for all the users on my website? Specifically the Dashboard metaboxes I want to make a default configuration for. Is this possible?
0
votes
0answers
115 views

Dynamically add text-field to a custom post

I have created a custom post called 'schedule'. In that I want a button, when user clicks on that new text-field should get added with name and all text field should have a same name.Also help me how ...
1
vote
1answer
72 views

How to rename “Publish” metabox title in post screen

I've looked everywhere trying to find how to rename the "Publish" metabox title in the WordPress backend post screen. There's help for every other metabox for changing titles and there's help for ...
0
votes
1answer
22 views

CPT posts in drop downed in meta box on page doesn't return post ID

I have an issue with displaying ID of selected post. Could you guys help? thanks Function below add_action( 'add_meta_boxes', 'cd_meta_box_add' ); function cd_meta_box_add() { add_meta_box( 'my-...