WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[resolved] Associate Type with a theme php fil (3 posts)

  1. jplur
    Member
    Posted 2 years ago #

    Is there a way to associate a Type with a theme php file? My client wants a 'Project' type with mandatory custom fields, and I was hoping for an easy way to have this type use it's own php file in my theme.

    Thanks! Love the plugin!

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

  2. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    WordPress does this automatically. There's a mapping between the names of custom post types and their templates. Have a look here:
    http://codex.wordpress.org/Post_Types#Template_Files

    Of course, you can also do this using our Views plugin, without coding:
    http://wp-types.com/documentation/user-guides/view-templates/

  3. jplur
    Member
    Posted 2 years ago #

    It's working, thanks!

    I wasn't being case sensitive my first attempt ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags