How to show breadcrumb navigation to wordpress

Step 1: Include the below function in the functions.php

function the_breadcrumbs() {
    if (!is_home()) {
        echo '<a href="';
        echo get_option('home');
        echo '">';
        bloginfo('name');
        echo "</a> » ";
        if (is_category() || is_single()) {
            the_category('title_li=');
            if (is_single()) {
                echo " » ";
                the_title();
            }
        } elseif (is_page()) {
            echo the_title();
        }
    }
}

Call this above function where you wish to show the breadcrumb

<?php the_breadcrumbs(); ?>