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

learn more… | top users | synonyms (2)

0
votes
0answers
7 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
1answer
18 views

save_post to add wp_insert_post_data filter

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
8 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
14 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
26 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
0answers
26 views

Displaying meta box data on a page [closed]

I have a custom theme option and tab system in my admin panel. I am displaying my metabox and theme options by using this CMB. The issue I am having is display a saved metabox field at the frontend of ...
0
votes
1answer
53 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
22 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
15 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
8 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
17 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
29 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
14 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
7 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
20 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
26 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
18 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
19 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
42 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 ...
-1
votes
0answers
18 views

How to add upload image on custom post type wordpress [duplicate]

I have created a custom type post on wordpress, when i have added file upload I couldn't save and get the image, so if there is anyway to solve this problem show me how. an other thing how can i show ...
0
votes
1answer
24 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
46 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
33 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
13 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
33 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
31 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
48 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
20 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
34 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
29 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 ...
0
votes
1answer
21 views

Why is the text displaying, but not the textarea field itself?

So, I have a textarea as a field in a meta box, if I do this it works OK: $meta = get_post_meta($post->ID, 'twitter_embed', true); echo '<table class="form-table">'; echo ...
0
votes
0answers
17 views

assign custom post type to another post type

My question is based on those answer: http://wordpress.stackexchange.com/a/85281/68506 and http://wordpress.stackexchange.com/a/5778/68506 What I need is 2 dropdown from a custom_post_type in ...
0
votes
1answer
24 views

Metabox of one post influence setting on other

This great answer by David Gard allowed me to have a metabox sticky (checkbox) for posts that could only be set (checked) on one posts in the loop at a time. If post A has that meta box checked, then ...
0
votes
0answers
63 views

add_meta_box() and post formats

function myplugin_add_meta_box() { add_meta_box( 'myplugin_sectionid', __( 'My Post Section Title', 'myplugin_textdomain' ), 'myplugin_meta_box_callback', 'post' ); } add_action( ...
0
votes
0answers
10 views

Category metabox with floating categories

I was wondering if is possible to have floating categories in categories metabox. If you have many categories is very complicated find a categories with the whole tree opened. A (+/-) button would be ...
0
votes
0answers
13 views

Displaying randomly created meta values in wysiwig editor

I have already asked this question on stack overflow but I'm asking it once again here because i haven't found a solution to it yet. I am creating custom meta info for a post that will have null ...
0
votes
0answers
14 views

Populate field on submission via edit page

I've got a events listing plugin which I need to modify slightly. When adding an event via the edit / new page in admin the event date is split into 3 parts, like so: ente$meta_box_events = array( ...
0
votes
0answers
9 views

2 instances of same widget on the admin dashboard

I find the "Google Analytics Dashboard for WP" plugin very good and I especially like the admin dashboard widget/metabox (not sure about the right name). Problem is, it show only one stat at the time ...
0
votes
1answer
27 views

custom field not saved

help me please: my custom metabox not save !! #add a metabox add_action( 'add_meta_boxes', 'adding_meta_box' ); function adding_meta_box() { add_meta_box( 'meta_box_id', 'اطلاعات پست', ...
0
votes
0answers
22 views

filters to pass html correctly from tinyMCE meta box

I have a meta box that uses tinyMCE but all html tags I use are simply being passed as text instead of correctly encoded on the page. Seems to be a filters issue, but I have no idea where to apply ...
0
votes
1answer
35 views

Automating the process of shortcode generation in a plugin - how is it done?

Automatic short code generation is a technique that I see many plugin authors use but unfortunately, I have yet to come across a tutorial that details this subject so I am hoping that someone in this ...
1
vote
1answer
26 views

Understanding and using metaboxes in posts

I am developing my first theme that is not dependent on a parent theme but I am running into some back-end problems. I'm trying to add a metabox to all posts that are being written. This question is ...
0
votes
0answers
32 views

how to get post by metabox in wp_query

I want to WP_query by tag_id but i need to insert tag_id by metabox i cant do it and give wrong any one help me? $value = get_post_meta( $post->ID, '_my_meta_value_key', true ); <?php ...
0
votes
1answer
38 views

add_meta_box creating default form field types

I'm using add_meta_box as per the Codex entry. My question is about the 'callback' to print the form fields on the admin page. In the Codex, the form fields are echoed as written out HTML elements, ...
0
votes
0answers
15 views

Meta Checkbox To Do An Action

i have a meta box with a checkbox inside. I want it so if the check box is check and then the page updated for the page to remember that box box was checked and to also change the featured image. Any ...
0
votes
0answers
98 views

WP media manager in metabox to choose all media types

I'm trying to make a metabox for featured media on my posts, and would like to use the Media Manager like it is used in the editor, which is with all the options. I've tried this and similar things ...
0
votes
0answers
44 views

Saving an upload media meta box field

I'm using the answer for this previous question (link below) to generate a custom meta box with media upload functionality: Properly add an upload media button in a meta box field I've managed to ...
0
votes
0answers
41 views

Post structure for TV Shows or Shows

I wanted to know what is the proper way to structure post types or taxonomy for TV shows. Following below is what I am trying to accomplish using post type. - Series: Name,Title,Description -- ...
-1
votes
1answer
62 views

How to restrict the amount of categories/post tags/terms for a post type post

I'm in need of a solution that allows me to restrict the user/author to only use maximum of two categories per new post. One post can only have one or two categories. The only similar solution that ...