Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
1answer
13 views

Custom taxonomy with custom post type archive page

I created a sustom taxonomy and a custom post type via Metabox plugin. I am able to create custom post type posts and assign them to the custom taxonomies. But when I am trying to list them on an ...
0
votes
0answers
19 views

Input for Wordpress Meta Box not saving after publish/update

I have been working for this code to add Meta Box into Global Tab in Woocommerce Single Product. My new tab is "Table of Content", and I want to out Meta Box in that tab so I could update more ...
0
votes
2answers
23 views

Meta Box: display single image on an archive-template

I'm trying to get the url of an image from a MetaBox (plugin) filed on an archive-page. <?php if ( rwmb_meta( 'field-id' ) ) { // Get images $img_srcset_large = ...
1
vote
1answer
24 views

Having trouble getting my meta data to save

All I'm doing is creating a simple meta box for my posts that calls the existing tags, then displays them in a select drop down list for the editor to choose. I feel I'm so close in making this done.....
0
votes
2answers
21 views

How to set Post meta-box defaults based on the choices made by user in Customizer?

I have a radio control in the theme customizer. The code for that control is like below: $wp_customize->add_setting( 'post_layout', array( 'capability' => 'edit_theme_options', 'default' =&...
3
votes
1answer
24 views

Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar

Sorry for any wrong details. I am totally new to WordPress development. I am running a photo site. On single attachment page, I want to show the details (i.e upload date, filename, size, resolution) ...
0
votes
1answer
17 views

How many meta-query fields support WordPress search at a time?

I am new developer. I want know How many meta-query fields support WordPress search at a time? I saw that its getting (500 time out) errors after nine fields.
0
votes
0answers
12 views

Styling the post author meta box without editing the wp core

I'm using Advanced custom fields so that I could place a checkbox 'Certified' in user panel. I look at the user profile and check the box if the user meets certain criteria. I would like to style the ...
2
votes
1answer
47 views

Gutenberg add a custom metabox to default blocks

Is it possible to add custom meta boxes to the default blocks in Gutenberg? I would need to add a user-defined data-attribute to each block. This data-attribute then would be printed on the frontend ...
1
vote
1answer
14 views

global $post; in WooCommerce

Is there a reason when using the add_meta_box() callback, that when I do global $post I can't seem to access anything, or get the ID. I'm in WooCommerce, do I need to use global $product instead... if ...
0
votes
1answer
22 views

Embedded Options in a Custom Metabox

I am successfully able to create a number of custom metaboxes. There are a number of tutorials online that help with that. My question is how to include embedded options in a custom metabox? So, ...
0
votes
0answers
18 views

Programmatically create new post from a metabox button

Given a classic course-lesson structure, created by custom post types, I want to add a new empty lesson for a course, by using a simple html form on a metabox, in the course edit screen. I think I ...
0
votes
1answer
13 views

How to add custom post widgets as tags into wordpress

I want to make same functionality as tags working into a post. I want to add some custom file to be add as downloads, where i can add images/files/pdf from a URL, and it will saved as tags, we can ...
0
votes
1answer
30 views

update_post_meta doesn't work

I've been drilling with codes for so long. I was trying to create a metabox with a simple textare on it. Been stuck for almost 10 hours tyring to solve this. Still up until right now my meta box ...
0
votes
0answers
12 views

Start Post Edit Page With All MetaBoxes Closed

Is there a way to have all the metaboxes start out collapsed (i.e., closed) when editing a page? Either a plugin, function, piece of javascript code?
0
votes
1answer
39 views

Show metabox only for homepage

I'll try to add metabox to homepage with setting fields, but something went wrong, help me please. The metabox don't appear in page editor, when i remove if statement it shows on all pages. ...
0
votes
0answers
16 views

Putting two metaboxes in each woocommerce product edit pages for minimum and maximum ordering number without plugin

How can put two fields in each product editing page for setting minimum and maximum ordering.and then display one field in checkout page and prevent by tooltip messages out of min and max range.
0
votes
0answers
16 views

Is it possible to save radio buttons appended by javascript?

I am trying to append some radio button fields in meta box content. However, when I try to save it into my database it does nothing. $("#result").append("<input style='display:inline-block !...
0
votes
0answers
8 views

How to update form fields in a WordPress Dashboard Wiget?

With normal custom meta boxes, this can be done with update_post_meta($post['ID']), but a WordPress Dashboard Widget isn't a post nor does it have an ID. I can't seem to find an equivalent function ...
1
vote
0answers
14 views

Grouping metadatas into one

I want to have some custom metadatas for my custom post type. I know how to add the metadatas one by one, but I need to some of them together, considered as a single metadata. For example lets assume ...
0
votes
0answers
16 views

How to override inc/meta-banner.php in wordpress child theme

In the WordPress Parent theme inside inc folder I have meta-banner.php, in this php file I have some meta boxes which is include via inc/meta-function.php in all posts and pages. add_meta_box('...
0
votes
0answers
14 views

How to produce functions dynamically

I'm trying to add some meta boxes in new post page but instead of doing copy paste and changing some values; echo '<a href="#">Add New</a>'; I want to add a link and add an onClick ...
0
votes
2answers
51 views

Updating post meta for checkbox

<div class="vp-field vp-checkbox vp-checked-field vp-meta-single" data-vp-type="vp-checkbox" id="_custom_meta[category][]"> <div class="label"> <label>Categories</label> &...
3
votes
1answer
38 views

How to limit the pages displayed for choosing parent page on page attribute's menu?

I have a site with a lot of pages. I would like to know if there is a method to display only the pages that I want to be displayed on the menu for choosing the parent page. A lot of them are child ...
0
votes
1answer
21 views

Wordpress admin area: select box with 12.000+ options

I have a custom post type that in admin area has a select custom meta box with 12.000+ options. So, in some cases, WordPress show an error message like memory exhausted. Which could be a good ...
0
votes
0answers
9 views

count meta field in taxonomy with custom post type

I am searching for that but i can't get it I have a post type called: lessons with it, I have a taxonomy called lessons_txt as custom taxonomy with custom post type. with every sub taxonomy in that ...
0
votes
1answer
19 views

Saving metabox content not working

I'm trying to save a metabox input but it doesn't seem to work. I'm working with arrays (as I need my metabox to have 60 rows), so I assume the problem lies within them. This is my metabox function ...
0
votes
0answers
24 views

Adding Editing (backend) metaboxes for a given post type to the frontend

Apologies that this question isn't coming with a pre-existing code attempt by yours truly; this need is a bit above my current skill level (but I'm working very hard to improve at it). I'd like to ...
0
votes
1answer
14 views

How to verify nonces in bulk?

Hey I'm relatively new to WP, and I'm trying to get a handle on nonces since they're a good security check. I'm having difficulty verifying my nonces in save_post however. The checks fail on the $...
0
votes
0answers
15 views

Move Post publish box to a custom page

I'm quite new creating wordpress plugins. I created a custom admin page for editing/displaying some data related to "posts". This page is meant to be only for some special users. Creating and ...
0
votes
1answer
16 views

Problem with adding exta field in metabox in custom post type

I am trying to add a new field in the metabox there is demo url field which is working fine i have created new field that is not storing or saving any datas which inserted into the field. Here is my ...
0
votes
0answers
52 views

Best choice of options/settings framework for plugin/theme development

My question is what is the best options/settings framework out there now to safely build custom plugin/theme upon? I found the similar question here, but it was asked 7 years ago and definitely, ...
1
vote
2answers
41 views

Wordpress custom meta field for custom post not storing data

I have created custom post type named as freebie in that i have created a custom meta section in that added a input field. Which is not storing the data which entered in that field also not displaying ...
0
votes
0answers
172 views

semantic ui dropdown for custom metabox

I'd like use Semantic UI Dropdown (https://semantic-ui.com/modules/dropdown.html) in my custom metabox for the plugin I making. I added the codes like that: // Styles wp_enqueue_style( 'semantic-ui', ...
0
votes
1answer
21 views

edit_page or edit-pages for current_user_can()?

The more I read Wordpress Codex the more often I wonder if tutorials you can find on the net are actually correct. I've found several tutorials about creating metaboxes where user capabilities (when ...
0
votes
0answers
14 views

Metabox content doesn't show up on page

I just added this code to functions.php and WYSIWYG meta box appears in dashboard. but it's content wont show up on page.any solution? <?php define('WYSIWYG_META_BOX_ID', 'my-editor'); define('...
0
votes
1answer
30 views

Add other all taxonomies as meta boxes to custom post type

I have a custom post type which comes with a category taxonomy. This taxonomy shows as a meta box at the side. Pretty basic so far. Now I want to add additional meta boxes below the content on the "...
0
votes
0answers
111 views

How to add Custom post type recipes into woocoommerce Add to cart

I have created one custom post type name "Recipes". I add this recipes into cart when we click on add to cart button. how I can do it??? please gave me a sloution as soon as I add recipes on add-to-...
0
votes
0answers
27 views

4-layered parent-child relationship between differents custom post types in hierarchical order in a Wordpress-Plugin

I have a very similar situation than what's described here: How to set parent-child relationship between differents custom post types The problem though is that I have 4 different custom-post-types ...
0
votes
0answers
10 views

admin meta box not collapsing when using flex or cssgrid

I don't know if this issue is specific with my setup, but I've just noticed that if I style the content of a meta box using either flexbox or cssgrid, this doesn't collapse anymore. Checking the code ...
0
votes
1answer
138 views

How do I display a custom field in an existing form on the front end?

I just have one custom field (from metabox.io) that I need added to the front end of an existing form. Can someone just clarify the steps. I tried following this tutorial: https://voodoopress.com/add-...
0
votes
1answer
36 views

featured image in custom poste type (backend)

I created a custom post type outside the wordpress loop. I want to integrate the featured image meta box in the backend for this post type. $this->add_meta_box('postimagediv','Beitragsbild', array(...
-1
votes
1answer
48 views

Using CMB2 Plugin to create text_date metabox (datepicker) How do I save multiple dates? [closed]

I currently have a metabox with a custom date field but I'm wondering how do I customize it to save multiple dates instead of just one? (I need it to function similar to the tags metabox)?
1
vote
0answers
24 views

Anon function and add_meta_box

I am building a WordPress management plugin (so far going really well) however I am having a slight issue below is what I am trying to acheive and the problem. I am building a Meta manager and for ...
2
votes
1answer
61 views

Add search to list of categories in post editor

I have many categories in my WordPress website. Each time I am adding new post it is very hard to find specific category that I need this time. It would be much easier if I had search field right ...
0
votes
1answer
23 views

Simple Data picker meta box

Hello everybody I tried to follow many post and guides but with results not according to my needs. I need a simple meta box that catches a data timestamp like the standard one in Wordpress posts or ...
3
votes
1answer
19 views

Appending a value to metabox before and after saving

when I click upload a file, select the file, then click choose file. I want to be able to click upload file again, either before or after I click update, and add the selected files to the existing ...
0
votes
1answer
36 views

Save or update data when custom post published

I have metabox on my custom post screen. How to save them when any of them are checked and then use or echo those checked offers to display on single.php? my code for metabox is function ...
0
votes
1answer
43 views

duplicate featured image functionality in custom meta box

I'm trying to figure out how to add a link/button that when clicked will open the set featured image modal and perform the same functions as if you clicked it in the original meta box. I am wanting to ...
1
vote
1answer
27 views

custom meta box for page default template

I'm having issues getting some custom meta boxes to display on the page default template. I want these meta boxes to only display on the default template and disappear when the user chooses a ...