need an advice
-
I’ve about to start a project and going to build a website for a photographer completely in WordPress. I am completely against using a plug-in to handle the image galleries and instead want to use custom post types to do so.
I’ve already enabled several custom post types (for example “portraits”) via the functions.php file. I know need to figure out how to display these custom post types.
I would like to make pages in the Dashboard (for example “portraits”) and have those pages automatically display the appropriate custom posts. For example the “Portraits” page should display custom posts that are named “portraits.”
Anyone know how I go about doing this? Do I just modify my page.php and attempt to create some PHP condidtion that seems is the page name matches, a custom post type, and then returns those posts? Or do you need to create an entirely new file in your theme to handle these custom post types?
- The topic ‘need an advice’ is closed to new replies.