breadcrumbs

#221379
  • Resolved Mesmaili
    Rank Math free

    Hi, i have a problem in showind breadcrumbs.
    everything works fine but i want to show category + child category on breadcrumbs!
    for example:
    Category:
    - News
    -- Sport

    i want to show my breadcrumbs like :

    Home > News > Sport > article name

    but now i have just:
    Home > News > article name

Viewing 7 replies - 1 through 7 (of 7 total)
  • Ankit
    Rank Math business

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Could you please confirm if you have enabled the “Show category(s)” already?
    Show category

    Looking forward to helping you. Thank you.

    Hello Anik,
    thanks for you reply. I already turn it on but still have problem.

    I think I can help. You need to go to your post and select the primary term as your child category and then it will show you as you want

    Hi Amit, thanks for your time.
    yes but its not logic! cause:
    1- we have too many articles and we cant edit one by one.
    2- in article meta and category, now the child category is first and parent is next to the child!

    Brian
    Rank Math free

    Hello,

    Thanks for getting back to us.

    We don’t have a filter that can change the primary category on all posts to be the child category selected.

    A quick way to do this without needing to open the product page is with the quick edit options, this is way faster than opening the product page and you can do it directly from the products list page.

    Once done please add this filter to the funtions.php file of your theme:

    function wpse147453_remove_child_categories_from_permalinks( $category ) {
        while ( $category->parent ) {
            $category = get_term( $category->parent, 'category' );
        }
    
        return $category;
    }
    
    add_filter( 'post_link_category', 'wpse147453_remove_child_categories_from_permalinks' );

    Hope this would be helpful. Do let us know if you have any other queries.
    Thank you.

    Hi Brian,
    thanks but its not helped me.

    i think its a but in rankmath plugin, true?
    everyone want to show category + child in breadcrumbs!

    Brian
    Rank Math free

    Hello,

    This seems to have worked on my end as you can see in the screenshot here: https://i.rankmath.com/UPH4cu

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP 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,

    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 7 replies - 1 through 7 (of 7 total)

The ticket ‘breadcrumbs’ is closed to new replies.