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 37428

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

1
vote
wp_schedule_event() is what you are looking for. With this function you can create a cron jon that Wordpress will axecute on the specific interval you configure. This function should be called only on …
answered Jun 15 '14 by cybmeta
3
votes
There is not a standerized way to add HTML meta tags in WordPress but you can use wp_head action as a generic way to add meta tags. I think description meta tag should not be in the theme, as you sug …
answered Aug 25 '16 by cybmeta
1
vote
HTML in custom fields is, from my point of view, a weird use case of custom fields. Even more if the purpose of the used HTML is just look and feel (<strong> and <i> can be seen as just look and feel) …
answered Sep 3 '15 by cybmeta
0
votes
If I understand correctly you want to get the taxonomies associated with a custom post type object, not with a specific single post. To do that you can use get_object_taxonomies(). For example, to get …
answered Jun 2 '14 by cybmeta
1
vote
I think it is just a matter of logic. If you don't select any value, $_REQUEST['menu-item-custom-category'][$menu_item_db_id] is empty. So, the next line delete_post_meta() is never triggered in your …
answered Oct 23 '16 by cybmeta
1
vote
Fields in database tables can not contain other types of data than text strings and numbers, and variations of them like dates and times. The field meta_value of wp_postmeta is a text field. So, when …
answered Apr 12 '16 by cybmeta
1
vote
Because you want the results of the filtering process be the main object of your page, you may need to alter the main query using pre_get_posts action hook. It is really better that leave the main que …
answered Sep 6 '13 by cybmeta
1
vote
To get post meta fields, you can use get_post_meta() function, but obviously not get_user_meta(), the name of the functions are self-explanatory. The first parameter of get_post_meta() function is th …
answered Jul 28 '14 by cybmeta
2
votes
If you want to compare dates in a MySQL statement, you should store dates and times using MySQL datetime format: YYYY-MM-DD HH:MM:SS (PHP format Y-m-d H:i:s) Then, you can compare dates easily, and ' …
answered Nov 7 '16 by cybmeta
11
votes
In general, storing PHP serialized data in database in a bad idea. It can be easily understood if you use multple key-value pairs of data in one field row, that is, you use an array or a object with o …
answered Nov 8 '16 by cybmeta
0
votes
If you use update_post_meta, a meta field will be added to the post with the specified key. If the key exists, the meta field will be updated. If there are several meta fields with the same key, all o …
answered Apr 7 '15 by cybmeta
0
votes
Rahil Wazir's answer can do the job but I think is really better use the money_format function from PHP*. *Remember that this site is for Wordpress specific questions.
answered Feb 1 '14 by cybmeta
1
vote
You have two issues: 1.- Your are not passing the correct post ID. To solve this problem change: update_post_meta( $post->ID, 'my_key', $mydata ); To: update_post_meta( $post_id, 'my_key', $mydat …
answered Sep 11 '13 by cybmeta
1
vote
Because "institute" is a user and you want to perform some actions when it is deleted, you could use delete_user action (as we need information of the deleted user, deleted_user may not work, not sure …
answered Dec 16 '16 by cybmeta
2
votes
First, you need to access to the form data and save it correctly. For example, you are checking if $_POST['source'] is set, but there is no input with name="source" in your form, so the update_post_me …
answered Jan 31 '14 by cybmeta

15 30 50 per page