Support

Account

Home Forums Add-ons Repeater Field Query Posts with Repeater Fields

Helping

Query Posts with Repeater Fields

  • I have a CPT with a repeater. In the repeater are dates.

    cpt->repeater->{date1, date2, etc..}

    How can I query for a specific date within the repeater?

    repeater_field "contains" 20180320

    I’m not really understanding the docs on this.

  • Okay, reading through other posts here I see that doing a query against repeater fields is discouraged (and difficult).

    So, my thought is to serialize the data I want to query and add it as a separate custom-field during “save_post”.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.