WordPress.org

Forums

Types
[resolved] Associate Type with a theme php fil (3 posts)

  1. jplur
    Member
    Posted 3 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 3 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 3 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

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags