Category links for Custom Post types
-
Hi,
I am working on a custom theme, I have page with slug ‘faq’ and a custom post type that rewrites to slug ‘faq’ so any new post will be listed under ‘faq’. There are few categories for faqs and I wanted to list all categories on faq page in a way that if I visit page it will show default category. And all links should be insite.com/faq/category-name
format and if you select the link it will show category from that particular category.Right now generating category links just creates links as
site.com/category/category-name
and if I click on it it fails to load custom post type. I have to explicitly add url query to get custom post type. Another thing I can work with is use url queries to list posts assite.com/faq/?category_name=common-questions
but I am not sure which one is beneficial for SEO.
- The topic ‘Category links for Custom Post types’ is closed to new replies.