• How do you add the permalink hierarchy to the breadcrumbs? There’s no option for it.

    This is our permalink structure:
    /news-and-insights/%postname%/

    So naturally on a post page you’d expect it to be Home / News and Insights / Post Name

    But I cant find for the life of me get that working with the options.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    Breadcrumb NavXT doesn’t use the permalink hierarchy for generating breadcrumb trails. Instead, it uses the actual organization of the content within WordPress to generate the breadcrumb trail. If you want “News and Insights” into your breadcrumb trail for “Post Name” you need to have the “News and Insights” resource as some sort of parent for the post. Now, how you do that depends on how you are using posts. If they are just under “News and Insights”, you should have your “Posts page” under the WordPress Settings > Reading area set to “News and Insights” (and then everything is automatically done for you, no need to have it manually added to your permalink structure).

    Thread Starter amityweb

    (@amityweb)

    Thanks for your reply.

    The problem is I cannot set a Posts page in WordPress Settings > Reading, because then it uses the WordPress default listing. We have our own custom listing and so using custom code (and we do not put it in templates files but use shortcodes and can write functions for them). So our News and Insights page has the shortcode added to display our own code. If we set WordPress Settings > Reading to use this page, it ignores our custom code and uses WordPress’s listing.

    So WordPress Settings > Reading is not set to any page.

    Nevertheless, all our news pages have the URL /news-and-insights/ in them, so you would expect the breadcrumbs to include that.

    I guess your plugin needs an extra option to choose the permalink hierarchy as the parent? Any hooks or anything we can use to modify it ourselves?

    • This reply was modified 2 years, 5 months ago by amityweb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you add the permalink hierarchy to the breadcrumbs?’ is closed to new replies.