mercredi 4 mars 2015

How to add page under a custom post type?


I would like to add a page that uses a custom template (page-coffee-about.php) to appear under a custom post type called "coffee". The URL of the custom page should be http://ift.tt/1AJCZQn. I already have a URL for /coffee that uses archive-coffee.php.


Can someone tell me how to do this? I've searched and tried several different things (creating a coffee parent page, adding hierarchical => true to the register_post_type() for coffee, along with supports "page-attributes"), but I keep getting page not found.


Please note that I am running WordPress 3.7 and cannot upgrade!


Any help would be greatly appreciated. I'm stuck!





Aucun commentaire:

Enregistrer un commentaire