How can create your custom "Breadcrumbs" for your wordpress site?

You can create our custom breadcrumbs without any plugin by using this code. For use this code just copy and paste into your themes function.php file
// Create custom Breadcrumbs by raghunath.0087@gmail.com
function the_crumbs() {
    if (!is_front_page()) {
        echo '<a href="';
        echo get_option('home');
        echo '">';
        echo 'Home'; // Home Link Text, change this to meet your needs
        echo "</a> / ";
        if (is_category() || is_single()) {
            the_category(', ','&title_li=');
            if (is_single()) {
                echo " / ";
                the_title();
            }
        } elseif (is_page()) {
            echo the_title();
}}}

Leave a Reply

Your email address will not be published. Required fields are marked *