• Hello,

    So on a post I would like to only show the parent category of the taxonomy rather than all the child’s. Any help would be highly appreciated.
    Ex:
    Current: Blog / Parent-Category / Child-Category
    Ask: Blog / Parent-Category

    Thanks!

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

    (@mtekk)

    Normally, this isn’t something you’d do. Can you elaborate on why you do not want the child category in the breadcrumb trail? Knowing the core problem that you are tying to solve will help me provide a solution.

    Thread Starter 3fma

    (@3fma)

    Hi John,

    Thank you for your quick response. Currently, I am already hiding the current post navigation and I am displaying the child category as metadata on each post so it’s a duplicate to have the child category twice. Therefore, I would like to just show the navigation of where the post falls under.

    Looking forward to your solution. Thanks!

    Plugin Author John Havlik

    (@mtekk)

    Have you considered using a different taxonomy (even a custom taxonomy) for your child categories/metadata? Doing so would keep them out of the breadcrumb trail, and will likely result in better logical organization of your site.

    Thread Starter 3fma

    (@3fma)

    Hi John,

    Thank you for your feedback. How exactly would I go about adding a custom taxonomy for the single post page using your plugin?

    Looking forward to your response. Thanks!

    Plugin Author John Havlik

    (@mtekk)

    Breadcrumb NavXT would not add the custom taxonomy itself. You can either use a plugin that provides a GUI for creating custom taxonomies, or checkout the WordPress Documentation on how to use the register_taxonomy function to add a custom taxonomy to your post type.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Only show parent category from taxonomy hierarchy’ is closed to new replies.