Skip to main content
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
Results tagged with
Search options answers only not deleted user 9364
3 votes
Accepted

How-to get the get_category_parents() breadcrumbs trail without link on last item

</span>'; }else{ $breadcrumb = '<span class="active-cat">'.single_cat_title().' … </span>'; } echo $breadcrumb; EDIT: It turns out this almost exactly how WordPress produces the output: get_category_parents calls itself recursively (see here), so with this method you are essentially …
Stephen Harris's user avatar
5 votes
Accepted

Show current navigation path from menu

php wp_nav_menu( array( 'container' => 'none', 'theme_location' => 'primary', 'walker'=> new SH_BreadCrumbWalker, 'items_wrap' => '<div id="breadcrumb-%1$s" class="%2$s">%3$s</div>' …
Stephen Harris's user avatar
8 votes
Accepted

If on term-page -> get the current term?

You'll want get_queried_object(). This is a very generic function - and simply returns the queried object- so a single post, this would be a post object. For instance, the return object may be of the …
Stephen Harris's user avatar