0
votes
1answer
48 views

Remember the meta value with radio buttons

I've created a simple meta box consisting of two radio buttons: yes or no. When they click on the appropriate box, it saves the meta value to the database. However, the post page does not remember it ...
0
votes
1answer
2k views

How to add multiple featured image in meta box in post editor?

I would like to add multiple featured image in meta box in post editor area apart from default available featured image. I have added the meta box but i have no idea on adding the featured image ...
0
votes
1answer
115 views

Storing values in Post Meta vs new tables

I want to store list of user IDs in the post meta who have rated a post . So, for each post I will need to check the post meta to see if the user id exists in it or not. So my question is that, is it ...
0
votes
1answer
200 views

Any way to update_post_meta with html content? It gets stripped and becomes empty

So I am cloning some divs created from an array using jQuery. Here is an example. I have a drop down list that contains items to add to the meta box. The add button clones a hidden div based on the ...
0
votes
2answers
216 views

Metadata for a taxonomy - is there any WordPress way of doing this?

If I have a CPT "movies" I know I can have various taxonomies eg "Director", but how can I store further information such as "director's nationality" for any one particular director ... or is this ...
2
votes
1answer
279 views

Save HTML formatted data to post meta using add_post_meta()

Array ( [post] => Array ( [jw_objective] => Exposure to e<b>nd to end development</b> of various applications; right from requirement analysis to system ...
0
votes
1answer
951 views

Remove Meta-boxes (Yoast SEO plugin) [duplicate]

Possible Duplicate: WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins I was wondering how to remove Meta-boxes from the post page. I would like that only administrators or ...
1
vote
1answer
321 views

Saving value of a selection option in comment form as comment meta

In a plugin that I am writing I need to let user choose an option from a dropdown list before they post a comment. I used the comment_form action and inserted a drop down into the comment form. /** ...
0
votes
1answer
75 views

Is there a way to add a link with add_post_meta?

I am trying to put a link in the post meta with this code $authorEmail = get_the_author_meta('user_email'); $authorEmailLink = '<a href ="mailto:'.$authorEmail.'">'.$authorEmail.'</a>'; ...
1
vote
1answer
522 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
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 ...
1
vote
2answers
75 views

need advice on how to do a lists using custom post types - taxonomy vs postmeta

i am building a lists plugin .... i want to have a custom post type "lists" and then obviously also there would be a number of list items for each list .... i have read a fair bit of stuff about ...
3
votes
1answer
585 views

How to enable users to down-vote in this simple voting counter (that uses the post meta)?

This simple tutorial teaches you how to make a voting counter using the post's meta data. I would like to know how to add down-votes to this small script (e.g. -1, -2). In the following way: If the ...
0
votes
1answer
549 views

Updating post meta for custom post types

I'm writing a plugin for work (still) and having one more issue. I've added my meta boxes as needed. However, the problem I'm having occurs when saving the post. My snippets for saving pretty much ...
13
votes
4answers
6k views

Post meta vs separate database tables

When developing plugins that requires data storage, what's the pros and cons of using one method or another ? The explanation given in the codex is not detailed: Before jumping in with a whole ...