Breadcrums not showing category

#795411
  • Resolved Anonymous
    Rank Math free

    Hi,

    I’m using RankMath free. I’ve enabled show category in breadcrumbs config and I’ve put breadcrumbs in my theme, it is working. But showing category is not working in breadcrumbs. It only shows home and followed by post url (it is only for articles, not pages).

    And I would like a second thing, I use a tip for categories. It is configured as /category/name and I create a static page with same category_name and my urls in my site are like domain.online/page_category_name/post. So I would like that category url was like domain.online/page_category_name/post and NOT domain.online/category/post.

    Thanks beforehand.

    Cheers…

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

    I apologize for the issue you are facing with the breadcrumbs not showing the category on your website while using Rank Math free. To ensure that the category appears in the breadcrumbs, you need to follow these steps:

    1. Enable Show Category(s) Option: Make sure that the “Show Category(s)” option is enabled in your Rank Math settings. You can find this setting under WordPress Dashboard → Rank Math SEO → General Settings → Breadcrumbs. Here is a guide on how to enable breadcrumbs with Rank Math SEO.

    2. Check Theme Integration: Verify that the breadcrumbs are correctly integrated into your theme. If the category is still not showing after enabling the option, you may need to check the theme’s compatibility with Rank Math or consult with your theme developer.

    Regarding your second query about customizing the category URLs to include the page name before the category name in the URL structure, this customization might require additional development work beyond Rank Math’s settings. You may need to consider implementing custom URL structures through code snippets or plugins that handle URL rewriting.

    If you encounter any difficulties or need further assistance with these configurations, feel free to provide more details or reply to this ticket for personalized support.

    Thank you for reaching out, and we appreciate your understanding.

    Cheers…

    Sources:
    How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
    How to Customize Breadcrumbs in Rank Math » Rank Math

    Anonymous
    Rank Math free

    I had done step 1, but it continues with the problem. Theme is GeneratePress, it is very known. Thanks beforehand.

    Hello,

    Thank you for contacting support.

    For us to debug the issue please share an example URL where this is happening and also the category selected for the post in the editor.

    Looking forward to hearing back from you.

    Anonymous
    Rank Math free

    https://ultimateteam.online/ea-sports-fc/eventos/
    Category is “EA Sports FC 24”.

    Thanks

    Hello,

    1. Please navigate to WP Dashboard > Rank Math SEO > Titles & Meta > Posts and select the Categories as the Primary Taxonomy of the posts to include them in the breadcrumbs.

    2. Once the categories are added to the breadcrumbs, add the following filter to remove the category base from the breadcrumb URL and make it the page URL:

    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	if(is_single()) {
    		$crumbs[1][1] = str_replace('/category/','/',$crumbs[1][1]);
    	}
    	return $crumbs;
    }, 10, 2);

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Anonymous
    Rank Math free

    Thank you very much! Great support!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Breadcrums not showing category’ is closed to new replies.