WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
Not working with custom query rewrite (3 posts)

  1. MarceFX
    Member
    Posted 1 year ago #

    Hi!

    First, I understand that this is not an issue/bug of the plugin, it's just me customizing a lot :-/

    I have a custom query that goes like this:

    site.com/?taxonomy1=term1&taxonomy2=term2

    However, I set up a rewrite rule on my functions.php file that makes this query work liek this:

    site.com/term1/term2

    Both URLs take me to the same point. However, This plugin only shows the first term on the navigation:

    Home->term1

    I'd love to get this, instead:

    Home->term1->term2

    Any ideas how to make it work?

    Thank you

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    You'd need to make term1 be the parent to term2 and make sure they're both of "hierarchical" taxonomies, then I think Breadcrumb NavXT will be able to do its thing. I'd have to try it out. I don't remember off the top of my head how taxonomies/terms store the parent/child information, but I'm going to guess it isn't automatically done for you in the use case you have.

  3. MarceFX
    Member
    Posted 1 year ago #

    Thanks, but I know that making term2 child would be a solution, but that's not the question. Thing is, I can't make one related to the other since we're on a query.

    I know this is not what the plugin is supposed to do, but I'm trying to customize a solution :-/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic