• Resolved Stefan1981

    (@stefan1981)


    Hi,

    I am using Pods quit extensively on my website. Enjoying its functionality a lot. (But I am no programmer.)

    Now I want to change the display of one Pod with some more specific definition: I want it to only show entries within a certain date range.

    The Pod contains events. One field is date. That field I want to use for the filtering.

    What I use so far:

    [pods name="performances" orderby="concert_date DESC" limit="-1" template="performances"]

    But I fail to figure out what I need to change to filter only for a specific time period, like a couple of years or so. Should it not simply be something like “where = date”?

    [pods name="performances" orderby="concert_date DESC" limit="-1" template="performances" where="concert_date.year = '2022'"]

    This is what I tried (and variations of that), but it does not work.

    (I do have integrated the function “concert_date,year”.)

    Some help would be highly appreciated!

    All best

    Stefan

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Filter Pod for Date’ is closed to new replies.