• Resolved BitEdge

    (@whatwhatwhatwhat)


    Hi guys, My posts have breadcrumb trails like this

    Home ? Blog ? [category] ? [post title]

    for example on

    https://bitedge.com/blog/james-blog-introduction/

    Home ? Blog ? Gambling ? James’ blog introduction

    My site does not use the standard WP blog and category pages. As per the way the theme works we make regular pages and then put shortcode on them that output a list of blog excerpts as per the parameters in the shortcode.

    This leaves the blog and category links in the breadcrubs linking to the wrong page. For example the category link above links to

    https://bitedge.com/blog/category/gambling/

    whereas the actual page we want to link to is at

    https://bitedge.com/blog/gambling/

    For the Blog item it links to whatever you set as “Posts page:” in settings > reading. The page we want the Blog breadcrumb item to link to is

    https://bitedge.com/blog/

    But we can’t set that as “Posts page:” in settings > reading, because then the output we entered on that page (with the theme’s shortcode) gets overwritten by WP.

    Right now our hack work around is to set re-directs from the pages the breadcrumbs link to – to the page we want them to link to. This has multiple problems.

    How can we get the breadcrumbs to link directly to where we want?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is near to what I’d prefer to.

    There isn’t any plugin setting that allows you to change the items in the breadcrumbs to link to a post/page. However, the Yoast breadcrumbs come with a lot of filters so you (or your developer) should be able to code a solution using them.

    You can find the relevant filters, for example wpseo_breadcrumb_links, in class-breadcrumbs.php.

    Unfortunately, we can’t write the exact code for you, as this is beyond the scope of the support we can offer. If you’re in need of a developer to help you, we suggest you refer to Code Poet or Codeable.io.

    Plugin Support Jerlyn

    (@jerparx)

    Closed due to inactivity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set custom links for blog and category breadcrumbs’ is closed to new replies.