Hello,
I’m sorry to hear that you’re experiencing issues with displaying the primary category in single.php. To ensure that the primary category is displayed in single.php, you can use the following code snippet:
You can add this code snippet to your single.php file where you want the primary category to be displayed.
If you have any further questions or need additional assistance, please feel free to ask.
Sources:
How to Choose a Primary Category » Rank Math
How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
How to Customize Breadcrumbs in Rank Math » Rank Math
How to Optimize a Category Page » Rank Math
Hello,
the code snippet is not visible. Can you check?
Best,
Hello,
Thank you for your patience.
Could you please confirm if you’re referring to the primary category on Rank Math breadcrumbs?
If so, you won’t need a code since it is the default behavior when choosing the primary taxonomy.
Here’s a guide you can follow:
https://rankmath.com/kb/how-to-choose-a-primary-category/
Hope that helps.
Hello,
No, I have no such request for breadcrumbs.
In Single.php, I want to make the Rankmath seo primary category appear as the visible category in searches.
Best,
Hello,
Can you please share some more details with us? You can also share a screencast with us by using a tool like https://loom.com. A visual representation of the issue will help us to understand it better and assist you further.
Looking forward to helping you.
Thank 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.