Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 2487

Post meta is a data set containing additional core as well as custom post information.

1
vote
use another custom field with the URL and call it something like `leetpress_website_url' then change your code to this: <?php if(get_post_meta($post->ID, "leetpress_website", true)) { echo '<div …
answered May 17 '11 by Bainternet
0
votes
Your query return nothing since there is no field ID in the postmeta table so it really should be post_id : $meta_key = 'project_id'; return $wpdb->get_var($wpdb->prepare("SELECT post_id FROM $wpdb-> …
answered May 28 '11 by Bainternet
1
vote
you can use the same meta_key for multiple values, for example: meta_key - 'links' meta_value - 'link1' meta_key - 'links' meta_value - 'link2' then you can get the meta as an array of links: $lin …
answered Jun 3 '11 by Bainternet
4
votes
Here are two simple ways to do this: One is to use the the_content-filter to update the post "hotness", or you can schedule an event that will run daily and update the "hotness" once a day. First ap …
answered Jun 3 '12 by Bainternet
0
votes
why not add a filed to user meta once they have voted and just check to see if that specific user can vote? add to your add vote function this lines: global $current_user; get_currentuserinfo(); add …
answered Mar 1 '11 by Bainternet
3
votes
that could be caused by post revision being saved, and you should use wp_insert_post_data anytime you want to do something before the post is saved, here is an example plugin i just cooked up to test …
answered Jan 4 '12 by Bainternet
6
votes
Simply use get_the_term_list ex: echo get_the_term_list( $post->ID, Taxonomy_NAME, '<span class="the-category">', ', ', '</span>' ); just change Taxonomy_NAME to your category taxonomy name, if it …
answered Jan 15 '13 by Bainternet
2
votes
In most cases its better to store the meta as a single array and in that save database queries. The only down side to storing the data as an array is it's nearly impossible to query based on sirealiz …
answered Dec 15 '11 by Bainternet
0
votes
try this: window.send_to_editor = function(html){ dlink = jQuery('img',html).attr('src'); jQuery('#download_link').val(dlink); tb_remove(); }
answered Mar 23 '12 by Bainternet
2
votes
In WordPress these boxes are called "meta box" and to add one to your new/edit page screen you can use add_meta_box() function (look at the example at the bottom for the examples), you can also use th …
answered Apr 26 '11 by Bainternet
2
votes
there is you answer, in your code where it says: // Do something with $mydata probably using add_post_meta(), update_post_meta(), or a custom table (see Further Reading section below) you …
answered Mar 28 '11 by Bainternet
0
votes
get_post_meta() function works In and Outside of the loop and you saying that you do see it working on a single image "but doesn't in loop" means that you probably did not add the code to the right lo …
answered Mar 30 '11 by Bainternet
1
vote
You can use a simple custom field and tweak your template a little, for example say you call that custom filed "original_author" then your theme you need to replace <?php the_author(); ?> with: …
answered Jun 30 '11 by Bainternet
2
votes
Short answer: NO! I've asked a similar question before mysql order by serialized data? and the answer i got is: The only possible case when serialized data is acceptable is when you don't n …
answered Jun 13 '11 by Bainternet
2
votes
you can do that with hooking a simple function to save_post hook add_action('save_post','my_rating_field'); function my_rating_field($post_id){ global $post; // verify if this is an auto …
answered May 25 '11 by Bainternet

15 30 50 per page