Tagged Questions
2
votes
1answer
49 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 ...
0
votes
1answer
113 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 ...
0
votes
1answer
35 views
Add a class to post_class if more than one post shares same meta_value_num
I would like to be able to add a class such as .samedate to posts that share the same meta_value_num from a custom meta box.
So for example:
Say two posts share the same custom meta box value for a ...
0
votes
1answer
30 views
Multiplicate entry on update_post_meta
I have a metabox with an array of input:
<input type="text" name="activite_dates[]" size="30" /><br />
<input type="text" name="activite_dates[]" size="30" /><br />
<input ...
0
votes
0answers
43 views
trying to add several meta boxes and when callbacks are called there is an error [closed]
I am making a plugin that adds meta boxes to post. i have a function that currently defines 3 meta boxes. now when i define the callback that prints the mockup there seems to be a problem
I get the ...
0
votes
1answer
40 views
When editing a post with a custom meta box the values aren't displaying correctly
I followed this tutorial to create a custom meta box with a simple two option drop down.
My code is below. The custom fields are saved when creating a post, and edit when I change the value and ...
0
votes
1answer
78 views
get_posts in meta box dropdown not showing latest posts
I’ve got a metabox I set up using WPAlchemy that allows authors to add a link to an associated post. It’s been working fine for months but now for some reason the dropdown with the appropriate posts ...
0
votes
1answer
343 views
Repeatable custom meta fields
I am working on creating custom meta boxes for the back-end of WordPress.
I would like to add a metabox with several fields, in my case an image upload and a text input, but with a button that can ...
0
votes
1answer
74 views
Function to return values from metabox
I have created two custom metaboxes using the Meta Box plugin for my cpt called books, and I am confused how to output the values. The values need to be used in sperate places in one of my templates. ...
3
votes
1answer
121 views
Adding an assisting editor box to Post page
I run a multiple author platform and to improve the moderation, I want to add a couple of assisting editors. I want to add a custom box to the Post page where the assisting editor can confirm which ...
0
votes
1answer
36 views
Add a meta field to the list of results for a custom post type
I've created a Custom Post Type for "Books" ... I've also added several meta fields (custom fields) to each book, and I'd like to be able to display some of those fields in the table of results.
Is ...
2
votes
2answers
955 views
Properly add an upload media button in a meta box field
i have a custom post which has a meta tag that needs to be using a file upload (for video files). I am wondering, what is the correct way of adding an Upload button that points to the wordpress media ...
0
votes
1answer
171 views
Empty meta-box returns publishdate if no value is set?
I have no idea why this would/could happen.
I have a custom metabox for an "event_end_date" set for a custom-post-type. If I leave this field blank it always puts out the publish-date of the post ...
1
vote
2answers
181 views
special characters after saving draft interpreted as �
I am trying to create posts in hindi language. These characters UÉeÉMÑüqÉÉU after saving/publishing are interpreted as U�e�M��q��U. Though, the special characters are stored with no change in the ...
0
votes
1answer
66 views
Post AND page parameter for WP function
Is there no post AND page parameter for WordPress functions? So would I have to create a custom post type to define post AND page?
For example, add_meta_box( $id, $title, $callback, $post_type, ...
1
vote
1answer
179 views
Create meta boxes that don't show in custom fields
I used the code below to create a metabox for posts. These meta boxes are also seen in the custom fields.
I do not want these meta boxes to show in custom fields. Is there any way to not show meta ...
1
vote
1answer
258 views
Add a Save Button to Custom Meta Box [duplicate]
Possible Duplicate:
Adding submit or update button to custom metabox?
I added a Meta Box Like So:
add_action('add_meta_boxes', function() {
add_meta_box('CNMeta', 'Custom MetaBox', ...
0
votes
1answer
216 views
Show metabox in custom-post-template depending on taxonomy term?
I'm not sure if there is a solution for that but I'll ask it anyway :)
I've built a custom-post-template and a related custom-taxonomy. The taxonomy works as kind of "categories" for the ...
0
votes
2answers
677 views
How to use media upload on metabox post page without breaking TinyMCE?
I'm using the following code for upload in multiple mextaboxes in a post or page admin section. Works for metaboxes but breaks the TinyMCE insert image. I want to know please how I can achieve this ...
0
votes
1answer
983 views
How to batch update post content with custom post meta value
I have a custom meta box, using WPAlchemy, in which I am looking to get rid of. However, I would like to get all posts that have a specific custom meta value set, and insert it into the begininning of ...
2
votes
3answers
414 views
metabox upload file
I have a custom meta filed with upload file functionality but the problem is I can't get the fileurl button value when hit "insert into Post" below are my jQuery code
window.send_to_editor = ...
0
votes
1answer
43 views
Adjust query on single
I am building an event manager. One of the template files I have is events-single.php which displays single events. At the bottom of this I have next and previous events using next_post_link and ...
0
votes
1answer
4k views
How to get meta box values - WP tuts tutorial
I did these tree tutorials to create custom metaboxes.
wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-1-intro-and-basic-fields/
...
0
votes
1answer
316 views
Having trouble with custom post type / meta box
I've been working on a custom post type meta-box implementation that allows me to change the post_date to match the value in my "date" meta-box.
The function works perfectly except when I try to add ...
0
votes
2answers
1k views
How can I include meta box content when searching?
When I search on my site it currently doesn't search the content in my custom meta boxes.
How can I include this content when searching?
I'm registering my meta boxes as follows:
...
0
votes
2answers
471 views
Echo 2 values from one key in Array with get_post_custom
Edit 12/15/2011 Added Radio Button print code
// Add meta boxes to admin panel only needs to be added once
add_action('admin_menu', 'plib_add_box');
//Add meta boxes to post types
...
0
votes
1answer
227 views
Custom Meta Box with variable number of fields
Here is what I wanna do and I basically would just like some ideas from someone more experienced that would help to get started in the right direction.
I have a custom post type (Exams) that has is ...
2
votes
1answer
306 views
Metabox Data not being saved [closed]
My meta box won't save data. It's a select form field and when I select and update the post, there's nothing selected on refresh.
So here it is on PasteBin.
http://pastebin.com/tfrgasQC
Can anyone ...
0
votes
1answer
812 views
add post meta front end edit
I'm trying to allow users to add meta values in my posts but it doesn't seem to be adding it in my front end post edit
<!-- edit Post Form -->
<div id="postbox">
<form ...
2
votes
1answer
654 views
wp_handle_upload error “Specified file failed upload test” but still creates attachment?
Having a bit of trouble with an image upload custom meta box. What happens is the uploaded image is created as an attachment but the wp_handle_upload seems to kick back the error "Specified file ...
0
votes
2answers
2k views
Returning multiple get_post_meta values
I am looking for a solution to returning multiple get_post_meta values...
Current I am using a meta box array as follows:
$meta_boxes[] = array(
'id' => 'setlist',
'title' => 'Setlist ...
0
votes
1answer
205 views
$_GET & $post_ID
I got a set of meta boxes containing different form fields. All of them are build inside a set of classes.
Now I have the problem that I have to hook the construction of the fields early enough to ...
1
vote
1answer
301 views
Is there a need for nonce with Post Metabox?
I looking at the docs for add_meta_box. They used a nonce.
wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' );
I am wondering, probably the save post form itself should already ...
0
votes
1answer
508 views
Let's Create Custom Field Template Documentation
I've been using the Custom Field Template plugin for a while now, and I really like it. It's fantastic for adding quick custom field meta boxes in the wordpress back end. It handles TinyMCE, file ...
0
votes
2answers
198 views
post meta - problem : copy the same meta for all the articles
i created a post meta, to add the name of a specific "author" to my articles. But if i enter the meta of the first article, all the other articles copy the same meta. If i enter then a second name in ...
0
votes
1answer
372 views
Parse a text area custom meta box and assign as value to existing meta keys
I built a post interface to accept specific data in the form of custom meta boxes [rant]but now the end user says it's too much work to cut and paste 4 times[/rant]. So now (completely out of ...
1
vote
1answer
267 views
Populate Custom Fields in a Custom Post Type?
I want to set up a basic 'post rating' system for my site - I don't want to use a plugin - so I want to add the custom field 'rating' to each new custom post and populate this field with the number 1.
...
0
votes
1answer
261 views
Add box with custom per-page properties
Hey,
I'm stuck trying to add a box with settings for all pages (the ones users create/edit).
What I'm attempting to do is add 6, 7 check boxes and an input field for all pages that alters the ...
8
votes
3answers
3k views
Passing error/warning messages from a meta box to “admin_notices”
I have a simple meta box that updates the post custom fields (using update_post_meta()).
How can I send a error or warning message to the next page after the user publishes/updates the post and ...
0
votes
1answer
555 views
meta box & callback function
Situation
I got a class where i add a meta box to the post edit screen.
EDIT: This is the working version now
/**
* Calls the class on the post edit screen
*/
function call_someClass()
{
...
4
votes
2answers
1k views
post formats - how to switch meta boxes when changing format?
Problem
After realizing that post formats are pretty popular, but only a extremly rough drawn concept, i see that users will run into possible traps.
Post format ...
uses post meta fields & ...
0
votes
1answer
601 views
Metadata in loops
I have a standard Wordpress loop displaying items:
$loop = new WP_Query( array(
'post_type' => 'images',
'orderby' => 'menu_order',
) );
while ...
0
votes
1answer
3k views
Getting metabox value?
I have a custom metabox made using the code from Wordpress Reference:
http://codex.wordpress.org/Function_Reference/add_meta_box
<?php
/* Define the custom box */
// WP 3.0+
// ...
1
vote
2answers
2k views
How to store multiple input values with same meta_key
is there a way to store the input value from multiple custom meta box fields with the same meta_key?
I use the following code to store ONE value for the meta_key 'startdate':
function startdate() {
...
0
votes
1answer
179 views
Custom Meta Data is not being saved
I have created a custom meta box using following link in wordpress 3.0:
http://farinspace.com/how-to-create-custom-wordpress-meta-box/
I am using same code and custom meta data is not being saved. I ...