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

learn more… | top users | synonyms (2)

0
votes
1answer
87 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
40 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
44 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
585 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
4answers
463 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
58 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
57 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
124 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
78 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-...
0
votes
0answers
78 views

Correct way to create a select list in one metabox of custom-post-type

I'm trying to make a custom one from dropbox type within another custom type with popular and use the information but after that the post that estpu working to change the type of this type in the ...
0
votes
0answers
143 views

Meta box field in wp_query

I am working with a recipe site. I need to filter some meta box field in my wp_query. But I can't. I have searched in google 2/3 hours. No solution. Here is my code: // Meta Box Field array( ...
0
votes
1answer
139 views

How to check if meta box value is false for all posts then do something based on that

I have the following code in template-home page which queries for a custom post type, called reviews. I have a Meta Box for the Custom Post Type where I can write the Author, Article Link, an excerpt ...
1
vote
1answer
665 views

How to add meta box to plugin admin page?

There is the codes. add_action('admin_menu', 'test'); function test(){ add_menu_page( 'Test plugin', 'Test plugin', 'manage_options', 'test_plugin_options', 'test_plugin_admin_options' ); }...
0
votes
1answer
282 views

CMB2 metabox conditional logic

I am using CMB2 for metabox on custom posts. I am adding a metabox by using code below: $cmb_demo->add_field( array( 'name' => __( 'Test Text', 'cmb2' ), 'desc' => __( '...
0
votes
0answers
150 views

Image URL not added to Input Box from Media Library

I hope this posts correctly. This is my first time submitting a question here. I am uploading an image to a Custom Post Type - Meta Box. However when I upload the image to the media library the URL ...
0
votes
1answer
127 views

How do I save Multiple fields in a meta box?

Currently I am doing public function prfx_meta_save ($post_id){ if (isset( $_POST[ 'firstname'])){ update_post_meta($post_id, 'firstname', $_POST[ 'firstname']); } if (isset( ...
0
votes
0answers
18 views

meta boxes and about relationships

i see in this link http://jancbeck.com/articles/relationships-between-wordpress-post-types i can't find meta-boxes in last version of wordpress and heres the code i can't make it work <?...
0
votes
0answers
53 views

How to edit taxonomy terms fields directly from post editor?

When adding a custom taxonomy to a custom post type, a taxonomy meta box appears in the CPT editor where author can add terms to that CPT within the taxonomy. But the question is: Is it possible to ...
1
vote
1answer
226 views

How to hide meta box values from custom fields list?

I have created a metabox : function drama_description_metabox_markup() { global $post; $drama_description_metabox_markup = get_post_meta( $post->ID, 'drama_description', true ); ?> ...
0
votes
0answers
27 views

Image didn't load from taxonomy's custom meta field

adding some custom fields (image field) to custom taxonomy (issue) basing on code from (https://github.com/bainternet/Tax-Meta-Class), trying to out put the image attached to each taxonomy term by ...
1
vote
0answers
76 views

How to create a repeatable / reusable divs in the metabox?

I have a meta box: <?php function custom_meta_box_markup() { global $post; $meta_box_text = get_post_meta( $post->ID, 'meta-box-text', true ); $meta_box_text_day = get_post_meta( $...
6
votes
2answers
318 views

How do the 'tag' and 'category' (default) taxonomies do 'save_post' action?

I am trying to replace the categories metabox with what looks and works like the tags metabox because there's too much hierarchy and scrolling to check the appropriate categories and sub-categories ...
1
vote
1answer
55 views

What Can I Use To Add A Custom Button Between Publish button and Move To Trash?

I want to insert a custom button between "Publish" button and "Move To Trash" link. What can I use to make this? Here is a screenshot to make this clearer: I know I can use jQuery, but I want to ...
0
votes
1answer
467 views

Front end post and upload file, image for users without plugin

I have the condition as below :- There are multiple users who have to post their own post on respective post types(like news, reports etc) with feature image upload, extra file(pdf,txt,excel) upload ...
0
votes
1answer
25 views

Append custom field items to content from plugin

I know you can use add_filter( 'single_template', 'modify_page_template' ); function modify_page_template($single_template) { global $post; if ($post->post_type == 'post' || $post->...
0
votes
1answer
263 views

Meta box data is saved but NOT displayed in the meta box text field. Why?

I have a custom post type and I created it using the following code. /* DRAMAS */ register_post_type('dramas', array( 'label' => 'Dramas', 'show_ui' => true, 'supports' => array('...
0
votes
0answers
114 views

WordPress - Meta query with JSON value?

Im using post meta to store some value. Im having the following in wp_postmeta table: meta_key mykey meta_value a:2:{i:0;s:1:"5";i:1;s:1:"2";} I need to return posts which have meta_value of 2. ...
0
votes
1answer
341 views

adding ajax load more to display images from meta box

I am using metabox's advance file uploader to upload images. <?php $images = rwmb_meta( 'tj_file_advanced', 'type=image&size=YOURSIZE'); foreach ( $images as $image ) { ?> &...
0
votes
1answer
25 views

Metabox not being added

what is wrong with my code ? why it doesnt add meta box ? add_action('admin_menu', 'clivern_plugin_top_menu'); function clivern_plugin_top_menu() { add_menu_page('My Custom Page', 'My Custom ...
0
votes
0answers
71 views

do action inside a class is not working

I am trying to create my custom hook and call it from within a metabox class. Here is the pattern: metabox.php -- <?php require("libs.php"); require("test.php"); class metabox() { function ...
0
votes
0answers
19 views

Repeatable Metaboxes

I'm trying to add a repeatable field within another one, following this tutorial. http://code.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-3-extra-fields So I need a main repeatable field ...
0
votes
1answer
15 views

Cusotm MetaBox content not getting saved

I have added the custom meta box to my custom post types, but it is not saving content on publish or update button click. /* * Custom book metabox */ // Add metabox function ...
0
votes
1answer
167 views

Get meta value when the page is a blog archive

I'm using custom metaboxes on my pages. For example: header icon. I created a page for the news on my site. I selected it as a blog archive page under Settings->Reading page. Unfortunately I can't ...
1
vote
1answer
19 views

Custom Taxonomy to dropdown box on adminside wordpress

Can I create a country- location hierarchy using custom taxonomy on admin side. When selecting a country from select box , an another box should see the list of location comes under that country. And ...
0
votes
0answers
21 views

Post meta ( select slider number )

So i have build a custom post where i show the 10 most recent post's in a slider (slick.js). I would like to setup a field inside the custom post where I can select a number from 1-10 to be used in ...
0
votes
0answers
120 views

How to create a “menu item” on the theme customize screen?

My question is, how do I create a menu item as seen below but on the theme's menu customize page? "Theme Menu Options" Show's up here, But it does not show up here, Here is the code I used to ...
0
votes
1answer
242 views

metabox select - frontend display

Hi I bought a theme but I need to add some fields to a frontend submission form. I added the metaboxes and they are working but the problem is the select type of metaboxes. I cloned a select form ...
0
votes
0answers
34 views

Priority conflict with custom metaboxes and built-in discussion metabox

I have a strange issue. I'm creating my custom metaboxes which have around 100 fields. I'm trying like this: function page_options_metaboxes() { $screens = array('post', 'page'); foreach( $...
0
votes
0answers
103 views

How to add file upload with wordpress metabox in proper way

I am new with adding custom metaboxes.I tried to add metabox with text but with file upload couldnt'hre is my code for text metabox function cd_meta_box_music() { global $wpdb; $musicLink = ...
1
vote
1answer
258 views

Set height of the categories meta box in post dashboard

How can I set height of the categories checkbox meta box? The one thats shows when we want to post a new article. I have found this https://wordpress.org/support/topic/change-the-fixed-heigth-of-the-...
0
votes
1answer
71 views

Custom metabox does not store data

I'm troubled with a custom metabox, could someone give me a helping hand? I've got a custom post type which uses it, but unfortunately it's not storing the data into the database. Any clue? ...
0
votes
1answer
20 views

Meta boxes not saving

I have a custom post with two custom meta boxes that I add using this tutorial:http://wptheming.com/2010/08/custom-metabox-for-post-type/ When I update the post, it disappears. My code: function ...
0
votes
2answers
253 views

wp_editor for custom post type doesn't save value

I have done this so many times but facing problems with meta boxes and wp_editor these days, lot of notices, errors and strange behaviour. I have been able to solve problem with meta boxes notices ...
0
votes
0answers
47 views

Remove metabox container and header

Is it possible to remove the whole header of my metabox (title+toggle icon) and the container (.postbox) ? I wonder I can use css to remove them, but is it the best solution?
0
votes
0answers
84 views

Can't save meta field value if the title not set

I'm using the example from WordPress Codex (https://codex.wordpress.org/Function_Reference/add_meta_box#Procedural) to add and save meta box values. Unfortunately I can't save the value of the meta ...
0
votes
0answers
222 views

Get custom meta box in custom post type using tag ID

I have a custom post type called Contacts, and in each of those post I have a custom meta box called number where a phone number is stored in each of the Contacts posts. I also have a custom taxonomy ...
0
votes
1answer
211 views

add wp_editor to custom_meta_box

Can please anyone help? I created custom meta boxes, two of them are in textarea. This is what i have: array( 'label'=> 'Ingredients', 'desc' => 'List of ingrediends', '...