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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Bookmarks inbookmarks:mine
inbookmarks: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 user 48693

Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

6
votes
If you start to edit a new post, already a post with the status auto-draft is created. Actually, what you see is this post. So you can hook into the transition filter new_to_auto-draft and add a categ …
answered Oct 21 '16 by websupporter
0
votes
As a first condition: Have you tried, if you retrieve sub categories at all? … $sub_categories = get_terms( 'product_cat', $args2 ); echo '<pre>';print_r( $sub_categories ); If you have sub categories, you would still have a problem with your foreach: foreach ($sub_categories …
answered Apr 16 '15 by websupporter
1
vote
You can use get_terms(): <?php $args = array( 'taxonomy' => 'name-of-the-category', 'meta_query' => array( array( 'key' => 'ref', 'value' => '53113', …
answered Oct 21 '16 by websupporter
1
vote
category_ID is not a valid key for WP_Query. cat would be available instead, if you want to query a category: Example: $args = array( 'numberposts' => -1, 'post_type' => 'rooms', 'cat' …
answered Nov 20 '17 by websupporter
0
votes
The subarrays are the categories. So, I first load all categories with get_categories(). They are ordered by title. … Now, I get all the categories the post is attached to and I save the post in $post_categories[ category_id ]['posts']. …
answered Apr 15 '15 by websupporter
1
vote
If you have a look into the function in wp-includes/category-template.php you will see, there is no option for 'required' build in. So we have to choose another way since $args['required'] doesn't wor …
answered Apr 5 '15 by websupporter