Support » Plugin: Pods - Custom Content Types and Fields » [Plugin: Pods CMS Framework] Querying Pods in WordPress Templates

  • Resolved zhirsch



    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.

Viewing 1 replies (of 1 total)
  • Plugin Author pglewis


    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).

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Pods CMS Framework] Querying Pods in WordPress Templates’ is closed to new replies.