Refers to a box-like reusable user-interface component common in the WordPress backend.
0
votes
0answers
27 views
Wordpress metaboxes sorting and replication
I am not an experienced developer with Wordpress. I'm working on the development of a wordpress app for a manufacturing process. Every product has certain no.of stages and a single stage can be ...
0
votes
0answers
15 views
How to separate metabox data in front/backend
I just created a kind of long metabox using a tutorial at wptuts but I am lost in two things:
The output of the metabox displays all data grouped (ex. in grouped checkboxes they are all in a whole ...
0
votes
1answer
22 views
Remove Custom Taxonomy Metabox from Custom Post Type Screen
I have two hierarchical custom taxonomies, each on a corresponding custom post type. I would like to remove the metabox for each on the post type's edit screen.
I have read remove custom taxonomy ...
0
votes
1answer
30 views
Get a different size of Image thumbnail While working with custom metabox
I am using custom metabox for a page in my new project, I am using it for uploading image, and attaching it to the page. It's working fine, I can select image or upload the image using WordPress' ...
0
votes
0answers
43 views
Reload meta box content with AJAX
I want to build a meta box that contains multiple textfields which get filled if a submit button is pressed.
The data is set by a function which should get called if the button is pressed.
How can I ...
0
votes
1answer
10 views
header specific meta box result detect url
I've got 3 header.php files and 1 detects whether their either on page 1 or page 2. I have a custom meta box thats outputting the results onto each header - that all works fine.
However when I go a ...
0
votes
1answer
19 views
Add metabox without the container
I want to add a second input identical in design/functionality to the Title text input, directly beneath it.
I can use
add_meta_box('catchy_title', 'Short Title', array('catchyTitle', ...
0
votes
1answer
30 views
How to callback custom field text
I have a plugin where the user can click a button to feature a post.
I added a text field but i want the text field to call back whatever is posted in it
Here is how it looks now
...
0
votes
0answers
22 views
Page vs Custom Post Type - which to use [duplicate]
I am creating a few pages (Company, Offices, Contact) and would like to have custom meta boxes for each of those pages. I want the meta boxes to be different for each page, and I don't know if that is ...
-5
votes
0answers
14 views
Adding sections with different shortcodes in a single meta box [closed]
I want to create a meta box with 3 different sections, one with 2 fields other 3 and last with 4 fields.
I will be adding different shortcodes for each section so i can use data from each section in ...
0
votes
1answer
37 views
Problem with $post_id object's property
Dealing with retrieving CPT metadata I find out two methods get_post_meta() and get_post_custom() to return the value(s) of the custom fields with the specified key from the specified post. Both ...
4
votes
1answer
296 views
What is the index [0] for on post meta fields?
Trying to improve my PHP knowledge through test and try! I am confused on [0] arguments at following WordPress PHP code
global $post;
$custom = get_post_custom($post->ID);
$price = ...
0
votes
2answers
45 views
Modifying the main editor priority
I want the main WordPress post editor to appear below some of my meta boxes (generated by Advanced Custom Fields).
I know there are the add_meta_box() and remove_meta_box() functions, however it'd be ...
0
votes
1answer
89 views
Taxonomy as checkboxes
So I'm trying to get Wordpress to display the categories as a series of select boxes in a custom meta box and am using some examples from this tutorial, but when I go to save the selection it ...
0
votes
1answer
103 views
How To Display A List Of CPT Posts In A Meta Box On Menus Page?
Is it possible to display a list of the custom post type POSTS, not archive link, inside a meta box on the nav menus page?
Currently, it displays each CPT post inside it's own metabox, but I would ...
0
votes
0answers
33 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
71 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
2answers
48 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 ...
1
vote
1answer
27 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
28 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
22 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
31 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
31 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', ...
0
votes
1answer
84 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
0answers
18 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
50 views
Customize 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.
0
votes
0answers
7 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
30 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
1answer
100 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
0answers
20 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
31 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
0answers
31 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
52 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' );
}
...
1
vote
1answer
87 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
47 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
17 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
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 ...
1
vote
1answer
62 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
102 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 ...
0
votes
1answer
26 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 ...
0
votes
0answers
27 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 ...
3
votes
1answer
100 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
43 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 ...
2
votes
1answer
66 views
unable to save post meta on single field with multiple selects
I set up two select boxes in one meta field by putting two arrays inside the 'options' array of my callback. The HTML is outputting fine, but the meta is not being saved to the database...
Here is a ...
1
vote
1answer
53 views
Why is my select meta data not saving?
I am working on a site at the moment where I need to save several different types of meta data for a custom post type.
At present I have a text input that is saving with no problem but am struggling ...
0
votes
2answers
51 views
How to make a meta box field a requirement
I'm building a plugin that has a meta box. Some of the fields in the meta box are required. Is using Jquery the only method for achieving this? Can I require that a field is filled in using php?
...
0
votes
0answers
56 views
How to tell if string is null or empty in meta value? [closed]
I am trying to figure out how to find out if a string is null or empty in php. The place I am pulling the value from is a meta value that is stored from a meta box on the post page.
I want to check ...
0
votes
1answer
44 views
How can I create a menu items from meta box based on users input
I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
1
vote
1answer
22 views
Trying to retrieve post meta
I have created a meta box that allows users to add an additional name/id to their post. From what I can tell it is adding the meta information correctly because when I edit a post that has a custom ...
0
votes
1answer
78 views
Get post meta retrieving wrong value
I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...


