How to display custom posts in particular page with a slug similar to CP rewrite
-
Hi people, that is ancient problem, but I still did not find any applicable solution, although I fight WordPress for 2 days. I want to perform simple task: to have ‘news’ page on my site with custom post type objects displayed with urls ‘MY_SITE/page_slug/custom_post_type_object_slug/’ that also requires pagination to work on that page.
My custom post type has a slug ‘pt_news’ with a rewrite slug ‘news’, page where I want to display my ‘news’ has slug/postname ‘news’. At the moment my best result is pagination works correctly, but posts permalinks return 404, when I try to open my ‘news’ detail. If you did something like that and managed to make it work please advice how you achieved that?
Basically I want to have urls like ‘/news/that-finally-works-god-bless-wordpress/’, so on page ‘news’ I get list news, on a page /news/CPT_OBJECT_SLUG/ I could see a post ‘that-finally-works-god-bless-wordpress’ in details.
Many thanks in advance.
- The topic ‘How to display custom posts in particular page with a slug similar to CP rewrite’ is closed to new replies.