Display custom post types in WordPress

Create your custom post type

Custom post types declaration is added to your themes functions.php file. Plugin would prevent against breackage  when switching themes.

Create template for your post type

Create template file page_my-custom-post-type.php

Upload newly created template file to your theme folder. Now “My Custom Post Type Page” will listed in the pages edit screen’s “Template” dropdown.

Create content page for your new custom post type

Create new page and assign your new template to the page.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.