• I am sure this question has been raised before but all the answers I have found online seem to handle different subjects.

    I am using WordPress and the Newscard theme, which doesn’t seem to have many options to change the breadcrumb logic itself.

    My problem is this: I’d like my breadcrumbs to follow the logic of my urls. I have for instance the url /articles/2020/post-title . ‘articles’ is the custom post type I have, 2020 is a page I made using a template and the post title comes from the title of each post.

    My breadcrumb is fine on /articles (It shows home > articles)
    It also works on /articles/2020 (it shows home > articles > articles 2020)
    but when the post is selected, the breadcrums only shows home > articles > post title.

    Now part of the problem is that the posts (some 1300+ of them) are not included in the menu structure and I don’t think it would be wise to do that. But it would be nice if visitors could get to the page 2020 via the breadcrumbs. Is there any way to achieve this?

    (I have actually tried Yoast but the settings there don’t allow me to create the structure I am looking for)

    Any help greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Caio Ferreira

    (@caiohferreiradev)

    Hi there @mfgr,

    Hope this message finds you well. ??

    The issue you’re having could be caused because your breadcrumb typically follows the hierarchy set in your WordPress menu structure.

    A way you can address this problem is to consider using a custom breadcrumb plugin or creating a custom breadcrumb function if you have some coding skills.

    When it comes to plugins, you can consider using options like Breadcrumb NavXT which provides you more control over your breadcrumb structure and might allow you to achieve the desired setup.

    Please remember that before implementing any changes, it’s always a good practice to back up your website and test these modifications on a staging environment to ensure everything works as expected without disrupting your live site.

    If you have any more questions or need further assistance, feel free to ask.

    Best,

    Caio Ferreira

    Thread Starter mfgr

    (@mfgr)

    Thank you very much for your reply.
    I tried out Breadcrumb NavXT and looking at the UI it does seem like I can set a breadcrumb path for each custom post type that I have created. However, I can’t seem to figure out how to insert a link to a set of ‘year pages’.

    All the options seem to suggest that there are ‘Post parent’, ‘dates’ ‘category’ or ‘tag’, but I can’t insert a variable to make the custom post type go to its parent page as suggested by the url.

    Maybe I’m missing something? But the documentation doesn’t mention something that seems helpful in this particular case.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making breadcrumbs follow url logic’ is closed to new replies.