Forums

[resolved] Show the name of the page before (Breadcrumb Hell!) (4 posts)

  1. rgbk
    Member
    Posted 1 year ago #

    Hi All

    OK, so I've checked I'm using Breadcrumb NavXT which seems out of all the plugins to be the best made.

    But I'm really stumped by how bad it is for something really really basic.

    Say you are in a category, "Apples"

    You click on a post in that category.

    BUT

    The post is also in other categories, like "Bananas" and "Mangoes"

    Breadcrumb NavXT makes the previous breadcrumb, which should be "Apples" any one of the other categories instead....

    That is not a breadcrumb!

    It seems to basically give it whichever category is the last clicked on. So if I give it the category "Peaches" after having giving it other categories, it will always go to Peaches.

    I've looked everywhere with no luck.

    All I want is a single breadcrumb, not even a trail of them.

    Would realllly appreciate it if anyone has any suggestions.

  2. rgbk
    Member
    Posted 1 year ago #

    Same thing with Yoast Breadcrumbs. Unreal.
    Surely a breadcrumb shows you where you just came from?!

  3. rgbk
    Member
    Posted 1 year ago #

    Here's the solution:

    '<?php
    $url = wp_get_referer();
    $path_parts = pathinfo($url);
    echo 'Back to '. $path_parts['filename'], "\n";
    ?>'

  4. boborg
    Member
    Posted 1 year ago #

    How do I implement that solution in Breadcrumb NavXT ?

Topic Closed

This topic has been closed to new replies.

About this Topic