How to show breadcrumb navigation in WordPress

Breadcrumb generally do not get their due importance in many themes. Once of the reason being most of the users misuse categories and tags. Unless you have clear understanding of how to use Categories and Tags, you wont be able to understand importance of Breadcrumb.

Breadcrumb helps yours users to navigate across your websites in most intuitive way.  Here is an example. This site has list of tourist places and Breadcrumb makes this very intuitive

Please follow below mention steps

Step#1 Enable Breadcrumbs using Yoast SEO plugin

Go to SEO–>Search Appearance

Please note, if you are using custom post type, you will get an option to choose which taxonomy needs to be used as Breadcrumb

Setp#2 Add the code

You can add below code where you need Breadcrumbs needs to be displayed. It varies across different themes. For most of the themes, if you copy this at the end of header.php file, it should work.

Alternatively, you can copy below code just above single.php just above the line which displays post title.

 <?php if ( function_exists('yoast_breadcrumb') ) 
 {yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?>

If breadcrumbs are still not visible, please let me know.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.