0
votes
0answers
34 views

Support Multiple featured images

I've created a WordPress theme where in one of my pages I need to use two feature images, I know already how to add support for the featured image and I'm using it. My need is how to add a second ...
0
votes
2answers
26 views

Is there a way to create a meta box that can be added multiple times to a post dynamically?

This shouldn't be that difficult (I wouldn't think) ... I just want to have a section of my theme (directors) that has the name of the director / their bio in the title and post respectively (done). ...
0
votes
1answer
27 views

How to validation for sanitize_URL?

Like sanitize_email validation is options available but sanitize_url options is available .if options is not available then how can i do this . http://i.imgur.com/WPYdkTb.png
0
votes
0answers
42 views

Meta Box Not Showing up in The Admin Page

Using WordPress 3.7.1 and PHP 5.4.12 I am trying to add a Meta box - text field to my Custom Post Type. My custom Post Type name is "news" and this is my code: <?php /* Custom Meta Boxex */ ...
0
votes
2answers
69 views

Display Data's metabox in page

I created a metabox has a textarea in page admin, So after validating the data is saved, but it's not displayed in the page (theme) I hope I explain well my problem. here is my code : <?php ...
1
vote
3answers
148 views

Loading scripts to the Post Edit page only

I have added a few meta boxes for the posts and pages, so I want to load a js script only on the Create/Edit post and page. How can I do that? Currently I'm using following but that loads the scripts ...
1
vote
3answers
212 views

Add custom field to existing meta box?

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works. My question is, is there a way for me to add a custom field to ...
1
vote
1answer
28 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
48 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 ...
2
votes
1answer
517 views

Reset positions of metaboxes in admin

I am writing a theme and in it I have a function which creates two metaboxes. The forth parameter of the "add_meta_box()" function I used can be set to ( high, core, default or low). I want the boxes ...
2
votes
1answer
106 views

More than one meta field in a single meta box?

I'm following this tutorial by Justin Tadlock on creating meta boxes. http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/ I can get a meta box with a single field to ...
1
vote
1answer
93 views

All of my custom posttypes are 404'ing

All of the posts made within custom posttypes have suddenly become uneditable, and will 404 when you try to view them. The posts in the admin panel are greyed out (posts in the standard post/pages ...
0
votes
1answer
172 views

Why is save_post triggered even when I havent saved the post

I created a meta box I notice that save_post seems to be triggered when I land on the page, thus giving me errors like Undefined index: xxx in /data/www/ae/wp-content/themes/xx/functions.php on line ...
1
vote
1answer
374 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
192 views

show_option_none not working in meta box

I have the following code going into a meta box: function multi_author($post, $box) { $currentAuthors = esc_attr(get_post_meta($post->ID, 'multiAuthors', true)); if ($currentAuthors) { ...
2
votes
1answer
106 views

How do I obtain the post content via a custom meta box inside the editor?

I have a custom meta box which I would like to use to report on the markup of the current post or page (number of words, number of heading tags, etc). How can I obtain the post content into memory in ...
14
votes
2answers
4k views

How to show a custom meta box on the “Quick Edit” screen?

I've used add_meta_box() to add a custom meta box to the WordPress edit window on both pages and posts. How can I make this meta box also show on the "Quick Edit" screen? Ideally, I'd like it to ...