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 31545
1 vote
Accepted

Breadcrumb not showing custom category post type

parent_id = $parent_id_2 = $post->post_parent; } $frontpage_id = get_option('page_on_front'); if (is_home() || is_front_page()) { if ($show_on_home == 1) echo '<div class="breadcrumb … '</a></div>'; } else { echo '<div class="breadcrumb">'; if ($show_home_link == 1) { echo $here_text . '<a href="' . …
Pieter Goosen's user avatar
1 vote

Change posts list Breadcrumb

On a general note, you can also write yor own breadcrumb to modify the behavior of the output on your blogpage If you need something like Home > Blog to display on your blog page, you can do the following … conditional check inside your breadcrumb if( is_home() && 'page' == get_option( 'show_on_front' ) ) { echo 'Home > Blog'; }elseif( is_home() && 'posts' == get_option( 'show_on_front' ) ) { echo …
Pieter Goosen's user avatar
11 votes
Accepted

Breadcrumbs with custom post type without plugin

The issue with most breadcrumb functions is that it relies on the $post object on all pages. … This way, we have a 99.999% reliable breadcrumb that does not rely on the $post global or any compromised data. Here is the function: (Requires PHP 5.4+. …
Pieter Goosen's user avatar
1 vote
Accepted

Link posts to pages for breadcrumbs

You need to go and have a look at template hierarchy for custom post types. I believe your custom post type is tennis. So you would make a copy of your theme's archive.php template and call it archive …
Pieter Goosen's user avatar
1 vote

Only show sub-category

You can make use of the get_the_categories filter to remove the parent categories from the list. the_category() uses get_the_category_list() which in turn uses get_the_category() The idea is to chec …
Pieter Goosen's user avatar