Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

Problem with multi checkboxes value in metabox?

I'm a beginner and I have a problem with a part of the script that I found in a post. Practically when printing the checkboxes it does it outside the table. I can't bring the content of the foreach ...
manu wide's user avatar
1 vote
1 answer
2k views

How do I update a field of a meta box?

While parsing data from a CVS file into a custom post type, i would like to parse data into the fields of a meta box, that I created. The meta box fields are normally updated like this: function ...
Dougless's user avatar
0 votes
0 answers
88 views

Creating a "Related Meta" type field?

I need a unique meta box which can contain auto-updating elements similar to how a tag cloud would appear. Example. identifier id : animals identifier data : Dog, Cat, Horse, Pig I need to know ...
Someone's user avatar
1 vote
0 answers
69 views

Custom Attachment Caption Fields

I am looking to create a new field group in the gallery Attachment Details section. The field group would be called Project Tiles would contain the following fields: Caption Link (ideally this would ...
user2798841's user avatar
0 votes
1 answer
1k views

Why does this update_post_meta function not delete the custom field itself?

I'm trying to set a meta key value of either "yes" or null with the checkbox so I can select posts using a query that checks if the meta key exists and not use the value of the meta_key. I don't want ...
BlueDogRanch's user avatar
5 votes
1 answer
4k views

Detect meta value changes when post is updated (post_updated)

In my theme, I want to create the function that when a metabox value is changed, the author is notified. Effectively, I have a custom metabox that loops through a certain level of user role (custom ...
markb's user avatar
  • 299
1 vote
1 answer
240 views

Cannot save CPT meta box

I swear I have tried every tutorial, and looked through every Stack Overflow thread to figure out what I'm doing wrong... I'm creating a custom wordpress backend for a church that includes a place for ...
AJ Fick's user avatar
  • 13
4 votes
1 answer
5k views

echo value from 'select' field type into page template using cmb2?

I'm using CMB2 plugin to add metaboxes into a custom post type. I'm adding the additional metaboxes via functions.php onto child theme. It may worth to mention that parent theme/custom post already ...
VA-YVR's user avatar
  • 41
0 votes
2 answers
4k views

Display custom meta box in my template file

Need help displaying my custom meta boxes on a template file. Following a tutorial Here's the code from my functions.php: function get_custom_field( $value ) { global $post; $custom_field = ...
SPS's user avatar
  • 115
0 votes
1 answer
137 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 ...
user1632018's user avatar
1 vote
1 answer
54 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 ...
user1632018's user avatar
0 votes
1 answer
2k 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 ...
user1632018's user avatar
0 votes
1 answer
2k views

Saving multiple Metabox contents

I'm putting together a fairly simple Custom Page for a friend on their WordPress site, but I'm having some real difficulties getting the contents of the Metaboxes to save correctly. WordPress doesn't ...
Django Reinhardt's user avatar
1 vote
1 answer
957 views

Custom Metabox Not Saving

I've simplified a problem of saving custom metaboxes on update and still can't get the box to save the custom-field input to the database. This is the call from functions.php to an external file /...
tigre's user avatar
  • 155
0 votes
1 answer
2k views

Custom metabox not working

Morning! I have a call in my functions.php file to include a custom meta-box php file in my theme's directory called: /metaboxes/home-meta.php The code is as follows for the call: add_action( '...
tigre's user avatar
  • 155
0 votes
1 answer
42 views

Specific coditional usage [closed]

I have some trouble making work a conditional inside a Function. check this out: I'm using this function: function get_spec_1(){ $desc1 = get_post_meta( get_the_ID(), 'eco_mb_tp_1', true!= "" ); ...
Locke's user avatar
  • 17
1 vote
1 answer
255 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 ...
Cerere's user avatar
  • 231
0 votes
2 answers
1k views

Get fields from metabox array

In my functions I'm registering multiple metaboxes with custom fields. A single metabox array for instance, looks like this: In functions.php $meta_boxes[] = array( 'id' => 'general_info', ...
at least three characters's user avatar