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 in
site.com/faq/category-nameformat 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-nameand 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 as
site.com/faq/?category_name=common-questionsbut I am not sure which one is beneficial for SEO.
- The topic ‘Category links for Custom Post types’ is closed to new replies.