Search Results
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" |
Saves | in:saves |
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 |
A taxonomy is a generic "category" used to organize posts and custom post types
0
votes
1
answer
429
views
Including taxonomy in searches
It makes use of the standard built in get_search_query and therefore it can only find the title of a listing - we want the search to search through the taxonomy as well. … After a lot of googling, I think you cannot search custom taxonomy by simply adding extra tags - at least Taxonomy is not that magical and I'd have to write a script in my functions.php. …
0
votes
2
answers
297
views
Order custom taxonomy hierarchy
I have some custom taxonomy for regions.
Commonly it would look something like this. … I have however noticed that the taxonomy comes back not in the correct hierarchy - instead, alphabetically. …
0
votes
Order custom taxonomy hierarchy
Got it working,
$location = wp_get_post_terms($id, 'listings_region', array('orderby'=> 'parent'));