• Anonymous User 17752785

    (@anonymized-17752785)


    I have a breadcrumb of this type:

    Home > Progetti > Arte > You are Leo

    where Progetti is a custom post type and Arte is a category.
    The link for Arte in this breadcrumb is http://new.wayexperience.it/category/arte/?post_type=progetti.

    Instead of this, I would like it to be http://new.wayexperience.it/category/arte/?post_type%5B%5D=progetti, so with just ‘[]’ added after ?post_type.

    How can I modify this link?

    Thank you!

    • This topic was modified 4 years, 3 months ago by Anonymous User 17752785.
    • This topic was modified 4 years, 3 months ago by Anonymous User 17752785.
    • This topic was modified 4 years, 3 months ago by Anonymous User 17752785.
    • This topic was modified 4 years, 3 months ago by Anonymous User 17752785.

    The page I need help with: [log in to see the link]

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

    (@mtekk)

    There are a couple of ways you could achieve this, you could hook into a filter in add_query_arg(), checking for the addition of post_type as you probably want to modify this for everything. Otherwise, you can hook into bcn_breadcrumb_url and perform string manipulation to the URL. This said, you probably shouldn’t be adding [] to the URL for the post_type query arg (whatever script is needing that should probably be modified to not need it).

    • This reply was modified 4 years, 3 months ago by John Havlik.
Viewing 1 replies (of 1 total)
  • The topic ‘Changing link for custom post type’ is closed to new replies.