Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Using the Automatic Template Creation System in Easy Content Types

Posted on September 27, 2011 by Pippin in Beginner, Custom Post Types, Taxonomies, Tutorials, Video Tutorials 8 Comments
Home» Tutorials » Beginner » Using the Automatic Template Creation System in Easy Content Types
Tweet
Love It - 0
This entry is part 3 of 8 in the Displaying Content with Easy Content Types Series
← Automatically Displaying Meta Field Values in Easy Content TypesDisplaying Custom Post Types in Widgetized Sidebars →
  • Listing Custom Post Type Entries with a Short Code
  • Automatically Displaying Meta Field Values in Easy Content Types
  • Using the Automatic Template Creation System in Easy Content Types
  • Displaying Custom Post Types in Widgetized Sidebars
  • Controlling Page Layouts with Custom Meta Fields
  • Querying Custom Post Types in Your Theme Templates
  • Creating a Simple Events System with Easy Content Types
  • Adding a Simple Image Gallery with the Repeatable Upload Field

WordPress themes are based entirely on templates. These templates provide a way to customize the layout of your content on different pages and give you total control over how your website functions. Easy Content Types includes a very powerful function that will automatically create new template files for your custom post types and taxonomies based off of those already in existence in your theme. This is an explanation of how to leverage the power this feature provides.

The automatic template creation system makes it much easier for you to customize the way your custom post types / taxonomies are displayed. By each of them having their own template, you can easily change the layout for your “Books” custom post type, while leaving the default posts unchanged.


Related Items
  • Easy Content Types
Tweet Follow @pippinsplugins
easy content types

8 comments on “Using the Automatic Template Creation System in Easy Content Types”

  1. Vince says:
    October 12, 2011 at 4:40 am

    Cool feature.
    Just one thing, will these new template files get deleted by the main theme updates?

    Reply
    • Pippin says:
      October 12, 2011 at 8:32 am

      @Vince – They will only be deleted if you removing the entire theme and reupload it. Simply updating the theme through the WordPress updater should not ever delete them.

  2. douglsmith says:
    December 2, 2011 at 11:20 am

    Thanks for the nice overview.

    Is there a function that can be placed in the single template to link to the archive page. I’ve been trying avoid adding a hard coded link to the single template so it will be a little more reusable and flexible but I haven’t quite been able to figure it out yet.

    Reply
    • Pippin says:
      December 2, 2011 at 11:41 am

      @Doug – Thanks. Yes, there is a function: get_post_type_archive_link()

  3. douglsmith says:
    December 2, 2011 at 4:03 pm

    I’m embarrassed that I missed that when looking through the codex. :-) Thanks!

    Reply
  4. LyndaV says:
    September 30, 2012 at 7:29 pm

    I’m using Geneis with a child theme and when I went into Content Types > Settings there was a message at the top telling me that I had to change the file permissions to 755 or 777. I’ve done that, for both Genesis and my child theme, and although the error message went away at the top of Content Types settings, the new template files have not been created and I’m getting 404 errors when I try to visit my custom post type page or archive. When I view the files in both my Genesis theme and child theme folders, the new archive-books.php, etc. files do not exist. Any idea what may be going on?

    Many thanks in advance. :)

    Reply
    • LyndaV says:
      September 30, 2012 at 7:32 pm

      My apologies…I see there’s info about this in the forum. Will check that out. :)

    • Pippin says:
      September 30, 2012 at 9:16 pm

      The template files are most likely not being created because you’re using a child theme (there’s a limitation with the auto templating system and child themes).

      To fix the 404s, go to Settings > Permalinks and click Save Changes.

Leave a Reply Cancel reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Jobs Posting with Easy Content Types and Gravity Forms
  • Making a Simple Rating Field Type in Easy Content Types
  • Adding a Simple Image Gallery with the Repeatable Upload Field
  • Repeatable Upload Fields for Easy Content Types
  • Creating a Simple Events System with Easy Content Types

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes

Latest Tutorials

  • Storing Session Data in WordPress without $_SESSION (19)

    The term Session in web development refers to...

  • Test Your Plugins with RTL (1)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

Enter your email to receive automated updates when new posts are published

WP Core Contributions

  • [24316]

View the ticket on Trac.

WP Codex Contributions

  • Function: shortcode exists
  • Function: has shortcode
  • Function: shortcode exists
  • Function: shortcode exists
  • Function: has shortcode

View all 41 changes in the Codex.

Latest Tweets

  • Could not fetch Twitter RSS feed.

Topics

Rémi Corson hook add_options_page meta box Sugar Event Calendar get_user_meta featured wp_enqueue_script contextual help shortcodes register_setting campaign monitor attachments do_action login Related posts authors mail chimp attachment image forms short codes plugin post types apply_filters comments recent posts taxonomies short code bbpress custom post type Ajax gallery images Stripe taxonomy jquery widgets users add_filter add_action easy content types widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins