Issue with permalinks and CPT / Custom Taxonomies

#208464
  • Resolved Fabien Dupuis
    Rank Math free

    Hi,

    I’ve created a CPT “hotel” and attached to it a Custom Taxonomy “Location”.

    I’ve defined “location” as the primary taxonomy for my CPT “hotel” in Rank Math settings.

    When I view a single “hotel”, the breadcrumb is working well : Home > Hotel > Location > Single Hotel

    However, when I view a custom taxonomy, the breadcrumb is missing the CPT : Home > Location instead of Home > Hotel > Location

    Can you please help ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thanks for getting back.

    It seems like you have forgotten to mention the URL of your site in the sensitive data section. Please share it so we can log in and check.

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I’ve udpated the sensitive data.

    Thanks

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    Upon checking your Lodges custom post type I have noticed that you have created a sample post and the Rentals as a taxonomy in this CPT. Within the Rental, you have created the sample taxonomy as well.

    The Breadcrumbs are displaying that way because you have opted to hide the taxonomies within the settings. Please go to RM > General Settings > Breadcumbs and disable the option for: Hide the name of the taxonomy.

    By doing so you should be able to view the taxonomy in the breadcrumbs section.

    Hope this helps. Please let us know if you have any other questions.
    Thank you.

    Thanks Brian. Indeed, by doing so, it shows the taxonomy name (location ) but not the CPT. Is there a way to display the CPT in order to have Home > Lodges (CPT) > Location ?

    Brian
    Rank Math free

    Hello,

    Thanks for contacting us again.

    You can use the filter given below to change/remove breadcrumb items

    /**
     * Allow changing or removing the Breadcrumb items
     *
     * @param array       $crumbs The crumbs array.
     * @param Breadcrumbs $this   Current breadcrumb object.
     */
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	return $crumbs;
    }, 10, 2);

    It will require developer assistance to make this work as expected.

    Hope this helps. Let us know if you need any further assistance.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Issue with permalinks and CPT / Custom Taxonomies’ is closed to new replies.