jeudi 16 avril 2015

Set parent page for custom post type

I am working with Wordpress 4 and have some problem with links for custom post type.




  1. http://localhost/parent_page - first page.




  2. http://localhost/parent_page/result/ - second page (subsidiary page of first page)




  3. And for single page (custom post type) I want set link - localhost/parent_page/company_name/. But here I have conflicts, if I set "parent_page" for company (custom post type)


    'rewrite' => array('slug' => 'parent_page', 'with_front' => false)



    • second page will not work (404, page not found)




Aucun commentaire:

Enregistrer un commentaire