Refers to a box-like reusable user-interface component common in the WordPress backend.
0
votes
2answers
17 views
How to Display Custom Meta Box only on Specific Page IDs
I am using Magic Fields 2 for custom meta boxes and custom fields, but this situation pertains to any meta box.
I have a custom meta box that I want to display on only 3 specific page IDs.
function ...
0
votes
1answer
25 views
input radio 'checked' saves, but select option 'selected' doesn't
So I followed a tutorial on how to create a meta box w/ the taxonomy terms shown in radio buttons. (Tutorial here for others if interested: ...
0
votes
1answer
268 views
problem saving/ retrieving custom meta with wp alchemy metabox
I am using WPalchemy metabox class to add a extra meta field to the pages editor which will allow me to attach galleries to pages. I use the class:
$gallery_metabox = new WPAlchemy_MetaBox(array(
...
0
votes
0answers
8 views
Select Options Meta Data is Not Updating in Edit Meta Box
I have a Meta box with two user inputs 1: Text-field and 2:a Select drop Down options. I used following Save Method in mt Meta box and second part of the code belong to saving the Selected option from ...
0
votes
1answer
110 views
Displaying Meta Box Image
I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart.
I'm able to display the textfields using ...
1
vote
1answer
20 views
How to use MarkDown in a custom textarea field?
I've created a custom metabox with a textarea in it. How would I go about using Markdown in this textarea? I've seen some WP plugins but they seem to only be for the main editor.
0
votes
1answer
16 views
Problem On Retrieving Post Meta Data on Custom Column [closed]
I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
0
votes
0answers
13 views
Return to Post Editing Screen after a bulk action from the Custom Meta Box
Trying to adapt Custom List Table Example plugin for my own needs.
Here the page field is responsible for specifying the plugin page to which the form containing List Table posts to:
<form ...
0
votes
1answer
18 views
How to Put Custom Taxanomy Meta Box in Main Column
WordPress added the Custom Taxonomy Meta box at sidebar, Is there any way which we can relocate it in the main column , Under Edit box?
Thansk
1
vote
1answer
118 views
Better Method for Multiple Meta Boxes
I'm learning about meta boxes and have gotten them to appear on my local dev, but I can't figure out how to avoid creating new functions for saving multiple meta boxes.
I assume that I could call an ...
1
vote
1answer
20 views
Undefined function error when creating Custom Meta Box
Following this tutorial, I am trying to create a custom Meta Box on my theme by adding following codes to the function.php file:
enter code here
add_meta_box( 'my-meta-box-id', 'My First Meta Box', ...
1
vote
2answers
972 views
Woocommerce with metabox plugin
I'm using woocommerce as my e-commerce solution and the metabox plugin ( http://www.deluxeblogtips.com/meta-box/ ) to make my life a lot easier when implementing meta boxes. I've never had any issues ...
2
votes
2answers
543 views
Why can't I hook into save_posts after admin_init?
I'm trying to hook into the "save_post" action from an AJAX callback in my plugin, but it doesn't seem to work. In fact, hooking into "save_posts" only seems to work from a few key action execution ...
0
votes
1answer
51 views
Convert textarea with wp_editor
I have a custom tabbed menu which has some input fields that works properly. I followed this tutorial: ...
0
votes
1answer
302 views
Advanced Custom Fields Array Population
I'm trying to populate a ACF select field with an array from a custom $wpdb->get_results call, which is essentially a list of categories from my db.
I have the following:
global $wpdb;
...
0
votes
0answers
15 views
Dynamic Custom Menus [closed]
I've created a meta box so my client can choose which custom menus to use on certain pages. That seems to be working fine. However, I've created a second menu but only the original menu is showing up ...
1
vote
1answer
29 views
Customize Welcome Panel Plugin
I am trying to create custom welcome panel in dashboard for WP and can't see where I went wrong. It's not allowing me to add html.
function custom_welcome_panel() {
$customwelcome_panel = ...
0
votes
0answers
22 views
Problem for recover and save metaboxes
I create metaboxes but i can“t save data and also no show data insert into field , this is my code
<?php
function reaction_buttons_meta2()
{
global $post;
echo ...
0
votes
0answers
5 views
Need Metabox show the values [duplicate]
I can show the metabox of my code but no works for save and get values into the field i save until
<?php
function reaction_buttons_meta2()
{
global $post;
echo $_POST['reaction_buttons_off2'];
...
0
votes
1answer
108 views
Metabox does not show in custom post type
I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
0
votes
1answer
149 views
save_post action inside a custom metabox class not working
I am writing a class to create metaboxes and save the form data. The problem is, I keep getting a warning when I click "publish":
Warning: call_user_func_array() expects parameter 1 to be a valid ...
0
votes
1answer
44 views
Save selected item from dropdown menu in a meta box as a metadata value for a custom post type
I have been beating my brains on this one for days now and my Google-fu is failing me.
I have created a custom meta box with a dropdown menu that lists all of the terms from a custom taxonomy. What I ...
0
votes
1answer
235 views
Custom field values get deleted
I created a custom post type:products which also has custom fields: price & shipping. Occasionally, if I leave the edit product window open or refresh it, I lose the values inside price and ...
0
votes
1answer
42 views
Option to delete value in metabox
I'm making a metabox with a textbox that displays the value of the metakey if I user types and saves data. What I need help with is how the user can delete previous entries as well as edit them if ...
0
votes
0answers
15 views
Adding additional text fields and image upload to a Page?
I have a contact page:
I would like to add an additional text field below the text editor and another image upload button. And then display it in the template as something like this:
<?php ...
0
votes
2answers
25 views
How to Publish WP original Source metabox value on front-end webpage
I use a plugin called WP original Source.
It lets me add the URL of the original article source, which is handy as it credits the original source of article extracts and summaries that I publish of ...
0
votes
1answer
132 views
Help integrating Custom post type meta field with custom profile fields
I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them.
I have added some spots to the profile using ...
0
votes
0answers
19 views
How to display all values of a multicheck array if they are checked?
I'm really a rookie to PHP, i'm using the customfield fields&meta boxes plugin for wordpress.
Normaly when i register a customfield,
i display them by using:
<?php if ( ...
2
votes
1answer
44 views
Removing meta boxes: remove-meta_box() or unset()?
I've seen two ways to remove meta boxes: remove_meta_box() and unset().
function TEST_remove_dashboard_widgets(){
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
}
...
0
votes
1answer
102 views
Metaboxes not saving data
I'm rebuilding a metabox for a plugin and it now won't save the data I enter. The HTML is almost exactly the same as before, but the save_meta function just don't work. I've read through quite a few ...
3
votes
3answers
2k views
How can I put a custom meta box above the editor but below the title section on the edit post page?
I have a custom meta box for a custom post type that my client wants placed between the title/permalink section and the post editor in the admin panel. Is this possible and if so is there a ...
0
votes
1answer
129 views
Plugin admin page meta_box toggle and order state not saving
I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0
I'm using meta boxes to hold sections of menu for a plugin.
...
-1
votes
0answers
26 views
html to image featured image
hi how can i use the script below to be able to convert html to image in wordpress so that when i click a button it generates and set the image a featured image, i wanted to create a metabox in post ...
0
votes
2answers
228 views
Include custom fields into the content of a regular page
Here's my setup:
Parent "Gallery" page: _regular page, not custom type or anything _
Several "Project" child pages (could be as few as 1, unlimited
number): also normal pages
Child pages will ...
6
votes
7answers
339 views
Individual Widgets per Page
In my (page-only, no posts) Wordpress site I have a number of static blobs in need to put in a sidebar. We could call/tream thoses 'blobs' as widgets. At least they'll have a fixed html content, like ...
0
votes
1answer
133 views
Change Default Custom Fields Metabox Name on cctm plugin
i found this thread Change Default Custom Fields Metabox Name
and i also want to change this cctm plugin generated Custom Field header to something else,so i tried to add
global $wp_meta_boxes;
...
1
vote
1answer
51 views
Use Custom Post Type to as Custom Field
I am newbie of wordpress as well php programming.
I want to create a custom post type for store that having all store names and it is working. Now I want to fetch the all stores in select box in ...
0
votes
1answer
37 views
Saving zero in meta box
So I have created a meta box for a review rating. Sometimes the value of the rating (out of 5) is zero.
When you enter a 0 into the input and save the data, it doesn't process because of the fact 0 ...
0
votes
0answers
14 views
Display Term Metabox Only On Certain Term Edit and Add Pages In Admin
I have a simple metabox added to a taxonomy and in turn its terms, however I am looking for a way to only display the metabox on a single term of this taxonomy, is this possible?
This metabox with ...
0
votes
1answer
148 views
Wordpress metaboxes - textfield suggestion automatically populated
[Long story short]
Is there any Wordpress plugin/function that would allow the creation/integration of a metabox's textfield that automatically populates a dropdown menu (in the admin area, while in ...
0
votes
0answers
53 views
Create multiple checkboxes in a metabox
I am trying to figure our how to modify this code so that it creates a checkbox for each entry in the meta_key.
It is a meta box that will be used on the menu page.
The meta_key has multiple ...
1
vote
1answer
42 views
How to remove a metabox from menu editor page?
I am not sure if it is much different for any page but I am wondering how to remove a metabox from the appearance>menu page without having to go into the wordpress core files and remove it. Is there ...
0
votes
0answers
15 views
Plugin works for default post types, but not for custom [duplicate]
I've coded a plugin that adds a meta box to the post page. When the post is published, the plugin will generate a random ID for the post, and insert the random ID and the post guid to a custom table ...
0
votes
1answer
22 views
Where can I find the code for the menu page meta boxes?
I want to add a meta box to the menu page. More specifically I want to basically clone the pages or category meta box and have it load the items into the list from a meta key, instead of pages or ...
3
votes
1answer
72 views
Adding another state (spam, reject, approve) to wordpress comments?
i know this might sound a bit weird, but what I'm trying to do is rather simple in mind but may be technically difficult.
I'm running small contests on my wordpress site where I ask users to leave a ...
0
votes
0answers
24 views
Dynamically add Meta Boxes
Is it possible to create dynamic meta boxes? Let's say:
I want some buttons to create columns. So i'd have the following buttons:
1 column
2 columns
3 columns
and so forth
If the user clicks "2 ...
0
votes
2answers
275 views
How to make a metabox that contains link categories?
I'm looking for some suggestions or tutorial links about how to create a meta box that allows users to choose from a list of link categories. So far I've been looking at this post about taxonomies in ...
0
votes
2answers
112 views
How to query custom post then display sections by meta value
This seems like an easy thing to do but I am missing something here. I have a custom post type called "recipient" and a meta check box called "yes_current" - (we help children with cancer and run ...
0
votes
1answer
196 views
Checkbox in post not saving value
I have a checkbox above my metabox in a custom post. When I check it and publish/update the post, it become unchecked again meaning it's not saving it's value. Here is my code for the checkbox:
...
0
votes
0answers
34 views
Using strtotime() and update_post_meta not saving
I would like to take a date entered in a meta box field, & convert it into a Unix timestamp (dd/mm/yyyy) and save it in the wp_postmeta table. But my code isn't working:
function ...

