FAQ and Breadcrumb
-
Hello John ??
I have some breadcrumbs on my theme.
When I am on FAQ, the title appears well in the Breadcrumb. But if I use search and go inside a breadcrumb post I can’t get to work a link to the main FAQ page inside the breadcrumb it appears empty like this:
Home ? ? Name of the question
Where I would like:
Home ? FAQ ? Name of the question
(where FAQ is a link to FAQ main page)
Here is example of code on my breadcrumb:
<?php } elseif (is_single()) { ?> <?php $category = get_the_category(); $catlink = get_category_link( $category[0]->cat_ID ); echo ('<a href="'.esc_url($catlink).'">'.esc_html($category[0]->cat_name).'</a> '.'<span class="raquo">»</span> '.get_the_title()); ?> <?php } elseif (is_category()) { ?> <?php single_cat_title(); ?>
Do you have an idea of what code I could add to achieve this ?
Thanks in advance for your help…
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘FAQ and Breadcrumb’ is closed to new replies.