WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Apply custom layout to all post types (2 posts)

  1. Kevin Kwok
    Member
    Posted 1 year ago #

    Hello. I love this plugin! However I have a question I hope someone here any help me with.

    I made a group called Affiliates, it appears in the admin menus etc. I was able to call on the data inputted etc. All is good! However I am using the single.php file from my theme, I was wondering how to apply a specific page design only for the posts created by making an affiliate and not share the same single.php design. Is this at all possible?

    Here is what my TYPES affiliate group settings looks like
    screenshot

    http://wordpress.org/extend/plugins/types/

  2. Kevin Kwok
    Member
    Posted 1 year ago #

    Figured this out on my own. If anyone is wondering how to apply a custom template to your post Type here ya go.

    Displaying via Single Post Template
    Just as you can customize the way individual posts are displayed via a theme’s single.php file, you can customize the way your individual post type entries are displayed. The easiest way to do this is to create a duplicate of your theme’s single.php file and rename it to single-{posttypename}.php. From there, you can customize that file to your specs. Using the example from above, we would need a single post template named single-mysite_reviews.php.

    Hope this helps someone in the future. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic