Display Primary Category link | WordPress.org

Hello @makeupedia,

Thank you for contacting support.

This question is not related to Rank Math but rather the core WordPress functionality.

Having said that, it seems that you are getting the category link saved in the variable $category_link, so you need to echo that variable on the page to get the link of the category.

Don’t hesitate to get in touch if you have any questions about our plugin.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here