Auto Templates

Auto Templates allows your Pods Templates to be output automatically in Singular and List (Archive) views on your site.

With Pods Templates, you can have them automatically output any custom fields or other content for any Post Type.

Quick Start

  1. Create the Pod Template for your Post Type for Singular and/or List views of your content.
  2. When editing your Post Type pod, go to the “Auto Template Options” tab.
  3. Click “Enable Automatic Pod Templates for this Pod” to turn it on.
  4. Choose the Singular Template you would like to use, if applicable.
  5. Choose the List Template you would like to use, if applicable.
  6. Click “Save Pod” to save your settings and go take a look at any of your Singular / Archive views to see it in action.

Settings

  • Singular Template
    This is the template that will show when we detect your Post Type is in the Singular context.
    • Singular Template Location
      This is the location to show the Singular template. The available options are:
      • Before
      • After
      • Replace (this will replace all of your normal post_content which may include existing content or blocks)
    • Singular Template Filter
      This is the filter to use for the Singular template integration. If you have a custom filter you need to use in your theme, you can choose to use a custom one here.
      • Custom Singular Template Filter
        If you want to use a custom hook for Singular views, you can specify which one that is here.
  • List Template
    This is the template that will show when we detect your Post Type is in the List context (Post Type Archive, Taxonomy Archive, Author Archive, etc).
    • List Template Location
      This is the location to show the List template. The available options are:
      • Before
      • After
      • Replace (this will replace all of your normal post_content which may include existing content or blocks)
    • List Template Filter
      This is the filter to use for the List template integration. If you have a custom filter you need to use in your theme, you can choose to use a custom one here.
      • Custom List Template Filter
        If you want to use a custom hook for List views, you can specify which one that is here.

Other Helpful Documentation on Pods Templates

Limitations of Magic Tags and Pods Templates

Pods Templates and Magic Tags were never intended to completely replace the power of PHP or WordPress Theme Templates. We discuss many of the limitations in this document and possible alternatives or workarounds.

Using Shortcodes in Pods Templates

In order for Shortcodes to be processed in Pods Templates, you do need to make some changes to your configuration.