WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] [Plugin: Pods CMS Framework] Querying Pods in WordPress Templates (2 posts)

  1. zhirsch
    Member
    Posted 1 year ago #

    Hello,

    I recently started using Pods to develop a web comic site. I created a Pod called 'comic', which allows the user to enter a name, publication date, an image, and several other fields.

    I would like to integrate this Pod into my Template files (not using Pod Pages). I understand how to use get_field() to grab all of my values, however, what I am a little confused about is how to query my loop so that only 'comic' Pods are displayed (as opposed to other posts, pages, or other Pods).

    What I am trying to achieve is to have my most recent 'comic' Pod (the most recent comic uploaded) show up on my main page. Does anyone have an opinion on the best way to achieve this?

    Thanks you.

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

  2. pglewis
    Member
    Plugin Contributor

    Posted 1 year ago #

    You might take a read-through here:

    Monday by Noon Tutorial

    I usually use the same or a very similar approach. You still setup a couple of quick things in the Pods pages tab, but your code goes in your own template files and you can stick with your comfortable workflow (and not have to try to maintain code in an HTML textarea).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic