Horje
Breadrcumbs: Get current category/slug path only for post - Wordpress Solution
[Solved] - Breadrcumbs: Get current category/slug path only for post - Wordpress Solution
Try following codes
Hi, I'm having a slight problem with breadcrumbs. When a post is assigned to two or more categories, my breadcrumbs then display all the categories associated with the post instead of just the current category path as exhibited in the URL. Example, "My Post Title" is assigned "Category A" and "Category B" I am viewing "My Post Title" in "Category B" (www.example.com/category-b/my-post-title) The breadcrumbs show: You are in: Category A >> Category B >> My Post Title Instead of, You are in: Category B >> My Post Title So to recap, I need to show breadcrumbs that are relative to the path of the URL including any categories/sub-categories instead of all categories associated with the "My Post Title". As you can see showing all categories/sub-categories associated with a post in breadcrumbs can be confusing for visitors. Thank you, Wprrrrring

Solution - 1

Please share your category breadcrumb code. And do you have any preference to which category you want to show in the breadcrumb navigation?


Solution - 2

Hi, Have you tried this plugin? http://wordpress.org/extend/plugins/breadcrumb-trail/ Thanks. Denzel

Date: 2022-10-21 05:13:39
Category: Wordpress
More for You