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

learn more… | top users | synonyms (2)

0
votes
1answer
16 views

advanced search forms with 3 input text and that the main problem 3 input text

N.B. : all my work is on wordpress. I was working for an advanced form with 3 input text in purpose to show a list of hotels. The problem is i tried an infinity tricks and functions but without any ...
0
votes
1answer
11 views

custom metabox nonce verification fails

I'm adding a metabox on a custom post type and my nonce-verification fails. I'm not really where to look for why it's going wrong. Can anyone point me in the right direction? Here's my code: function ...
0
votes
1answer
35 views

Showing a meta box in a custom post type on a page

I have a problem. I'm trying to add a meta box textarea field to a custom post type (in a plugin) with custom database table. The meta box is displaying in the custom post type, saving and updating, ...
0
votes
0answers
21 views

Hierarchical page parent dropdown menu

I wanted to create a three level dropdown menu for page parents as metabox in the edit screen for pages. I managed to do this to this level: <?php add_action('add_meta_boxes', ...
0
votes
0answers
31 views

Undefined index error in custom post metabox

I'm getting this error with my custom post metabox. The custom post and metabox works fine, but if i have debug on and when i try to save any other page or post, i will get an error: Notice: ...
0
votes
0answers
10 views

How do i retreive the ids of images from the gallery embedded to metabox

i have created a metabox with the following code $image_process_left = get_post_meta($post->ID, '_image_process_left', true); echo '<br><label for="image_process_left"><b>Image ...
0
votes
1answer
13 views

Extensible add_meta_box with apply filters

Im trying to give the user the option to extend/add the fields for a given metabox using filters using the class https://github.com/bainternet/My-Meta-Box this is what i have and it shows the fields ...
0
votes
0answers
11 views

Option Tree metaboxes on Custom Post Type does not import

I have a Custom Post Type portfolio which I make plugins. The CPT has metaboxes from Option Tree. I’m trying to Export and then Import the XML file on a new wordpress site. Metabox fields appears, but ...
0
votes
1answer
41 views

How to check if user meta field is empty in conditional else statement

Hello all I have a custom post type set up for my wordpress site within this custom post type i have a meta box with about 11 meta fields that I have added programatically. What I would like to do is ...
0
votes
0answers
20 views

advanced search forms with 3 input text

I was working for an advanced form with 3 input text in purpose to show a list of hotels. The problem is i tried an infinity tricks and functions but without any results, the only result i got is ...
0
votes
0answers
27 views

Make metabox always be on top (sticky)

i want to make some metaboxes (my own and some default) to be always on top. not matter if new meta boxes with high property will be added (from plugins for example). i try to use this solution but ...
0
votes
1answer
52 views

Add special meta box to custom post type

I have managed to add a meta box to my custom post type (see code below) Now I need to add another meta box. With this box I want to display / edit a value from another table called ...
0
votes
0answers
25 views

How to populate a nav-menus meta box with admin menu items

I have successfully added a new meta box to the Appearance->Menus (/wp-admin/nav-menus.php) page called "Admin Pages". Now I need to populate it the same way the standard "Pages" meta box is, but ...
0
votes
0answers
13 views

Replacing Standard Category Metabox

I am rewriting the standard category metabox to include a Custom Field as a select box which is dynamically updated as the user chooses the categories. This select box is set with all "checked" ...
1
vote
0answers
15 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
0
votes
1answer
20 views

Having Issue on Getting Metabox Checkbox Value

I have a Custom Post Type with two Metabox attached as: $offerPrice = isset( $productValuesl['offer_box'] ) ? esc_attr( $productValuesl['offer_box'][0] ) : ''; $offer = isset( ...
0
votes
2answers
53 views

Custom Upload Adds Ghost File

I've tried this on a fresh install on the twentyfifteen theme. I'm adding a metabox to pages which allows uploads - Whenever I upload a file on a new Page it uploads the file but also adds another ...
0
votes
2answers
50 views

get_post_meta as a list for drop down search filter

I was wondering if someone could help me out. I would like to create a dropdown search filter for my wordpress site. I would like the drop downs to be populated by meta_boxes values which i have for a ...
0
votes
1answer
20 views

Custom meta box using OOP way doesn't save data

This is the first time I'm building meta box using OOP way, the problem is when I save the post (product) or update it the input text is not saved to the database. Here is my code: <?php /** * ...
0
votes
0answers
21 views

Problems with get_the_ID()

I have to pass the value of a category to code to upload an image. I created a custom field user_submittet_category = 9 (value to pass). In the code below I have ruled out the line 108 and added the ...
0
votes
1answer
21 views

use post meta in add_meta_boxes action

Is there any way to use get_post_meta within a function called by the add_meta_boxes action hook? I only want to display the meta box if a specific post meta matches a regex, but so far, I have not ...
0
votes
0answers
9 views

multitaxonomy in one metabox

I want to add meta box in custom post type. but i nees to add in this meta box two custom taxonomy Is any why for add one meta box that contain two or more custom taxonomy?
1
vote
2answers
68 views

save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop

Im trying to change the title of a post, but I want to include info from a meta field, the value of which isn't saved to the database until after the posts has already been saved. Other than this one ...
0
votes
0answers
7 views

Moving WordPress Featured Image Box Below Title [duplicate]

I would like to move the featured image box just below the title field in the New Post admin. I tried the following code, but that just places it below the text editor. function ...
0
votes
0answers
11 views

Use one meta box handler at post editor and option page

I made plugin which uses custom database table to store custom form data. All works at option page where is added meta box like this add_meta_box( 'my_form_meta_box', 'My details', ...
0
votes
0answers
16 views

Post workflow with users and moderators

some of my users are allowed to write posts in my blog. I want to associate some "moderators" to their post, so i don't have to check them all myself. I can separate for which user which moderator is ...
0
votes
1answer
38 views

Specific Page that convert Hyperlink to anchor in nav menu

I extended my Walker_Nav_Menu that converting hyperlink to anchor as I'm making one page website. Here is the code: class description_walker extends Walker_Nav_Menu{ function start_el(&$output, ...
0
votes
1answer
68 views

Let author add field to metabox by pressing a button

I have added a custom metabox for authors where they can fill in a url to a source, which I can then use in my template. In my functions.php <?php /* Add metaboxes (see below) */ function ...
0
votes
0answers
24 views

How can add a form below post editor?

I need to add a custom form below post editor. I have a custom post type cottage here I can add cottage and its details like title,details,add custom fields by types plugin,featured image etc. Now I ...
0
votes
0answers
17 views

Can I attach the data from one post to another?

I'm looking to create a "snippets" plugin of sorts that lets me create a library of snippets. I then want to be able to attach those snippets to a post but not within the post_content. I basically ...
0
votes
0answers
11 views

Category Template - to be editable from the backend?

I have different categories that includes posts of the category. I want to add text and images before or after the posts of the categories are displayed on the frontend. I want to solve this via ...
0
votes
1answer
30 views

Generating image sizes when uploading through wp.media

Finding documentation on wp.media is really tough, so bear with me. I'm creating a metabox to attach images to a custom post type. I'm able to get a media frame to open, have it accept uploads, and ...
0
votes
0answers
34 views

Sort by a date field in a repeatable group

I'm using cmb2 WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress. I have a repeatable group for events with the meta_key 'date'. The repeatable group 'date' serialized array includes ...
0
votes
0answers
19 views

Custom Permalink Post with meta value

I would like to use two metabox values in order to build the permalinks for all posts (standard post type of wordpress). But after rewriting the permalink, it links to a page that contains a part of ...
0
votes
0answers
17 views

How To Show/Hide WordPress Meta Boxes Fields According to Option Select

I have a select list with values hosts and html5 and 3 custom fields. On select with value hosts 2 fields (Youtube and Vimeo) should appear, and if value is html5 the remain (Embed) should appear. ...
0
votes
1answer
31 views

How to insert data from metabox to custom table

I have created a custom table to save post data from custom meta box And I have a problem in saving data from custom meta box to custom table so this is my function save_meeting_meta_box() ...
0
votes
1answer
44 views

Save Metabox Custom Field Value

I am using this code to show post type dropdown to select available post types but when i submit the post it restores the value back to post, how can i make sure it saves it? <select ...
0
votes
1answer
32 views

problem with updating metabox of upload image

I created a custom post type and metabox for uploading another image. the problem is when i add the image its shown correctly in its place in backend and when i update its also the same i had the ...
0
votes
1answer
40 views

add_post_meta | update_post_meta | Via the frontend

I am having a difficult time trying to figure out how to save user meta data to a post. The goal that I am trying to accomplish is this, have a user make a selection from a drop down list, and save ...
0
votes
2answers
69 views

Select box saves but doesn't update value in admin

I have a select dropdown in my custom meta box in the admin area. It offers two options Approved and In Progress. When I select an option and save it the database is updated, but the value in the ...
0
votes
1answer
40 views

Custom meta box repeated field

I want to add a field in my custom meta box, same as below, but not for tags. How can I repeatedly take more inputs in the same field? Here is my code added to functions.php: function ...
0
votes
0answers
56 views

Admin - Plugin: create custom page with ID

I want to create a plugin in order to generate shortcode settings. My aim is to create a plugin page with add menu action and in this page to have a button in order to create a new setting page with a ...
0
votes
0answers
46 views

Search form to find custom meta box generated data

I have developed an inner theme plugin, which is a custom meta box that inserts some typed in text to the database and then displays in the application. I followed the example found at this link. Now ...
0
votes
0answers
19 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
0
votes
0answers
40 views

Post meta sanitization and escaping

I'm writing a plugin that adds a text meta box where user enters (supposedly) media URL, which then is displayed in posts with $featured_media = get_post_meta( $post_id, '_meta_key', true ); echo ...
0
votes
0answers
44 views

Problem with 'save_post' hook not running

I have a custom post type, with a custom meta box which contains a number of input fields. The meta box is displaying fine but when completing all the fields the data is not saving, in fact, the ...
-2
votes
1answer
64 views

How to change data format in custom meta box field [closed]

I want to chage date format to d-m-y means day-month-year format . I have added 'date_format' => __( 'd-m-Y', 'cmb2' ) But not working. now it's month-day-year formated . Actually i want to ...
0
votes
1answer
24 views

How to make post page unique and show it on home page?

I don't know if the title is correct but I'll try to explain my question below. I have created a custom post type "Projects" and the trick is that one project have to be unique and displayed on ...
0
votes
1answer
40 views

How to add a text widget on the posts admin page?

I need to add a text widget on the posts admin page ie, the post editor page. so that I can add some code in the text widget for some purposes. Right now I have used text widget and this can only be ...
0
votes
1answer
31 views

Displaying a div from an assigned meta_value when on a page

On my website I created a custom metabox that is being displayed in the post type "page". The metabox will display a checkbox and 4 url fields. The checkbox will control the visibility of a div ...