Set custom links for blog and category breadcrumbs
-
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
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]
- The topic ‘Set custom links for blog and category breadcrumbs’ is closed to new replies.