Home Forums General Issues Query Repeater Field


Query Repeater Field

  • Hello,

    I need to query repeater fields from a ‘post_parent’ where the repeater field ‘date-time’ is within 5 days of todays date.

    Repeater: Fixtures
    Repeater Field: date-time

    Why is this not showing any rows from each of the pages’ (post_parent) repeaters?

    $args = array(
    	'post_type'      => 'page',
    	'post_parent'    => 932,
    	'order'          => 'ASC',
    	'orderby'        => 'menu_order',
            'meta_query'        => array(
                   'key'       => 'date-time',
                   'value'     => array( time(), strtotime( '+5 days' ) ),
                   'type'      => 'DATETIME',
                   'compare'   => '>='
  • You cannot query the actual fields of the “parent” post.

    I.E: Posts you are querying => Parent Post => Fields related to parent post

    This is impossible to do in WP

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

The topic ‘Query Repeater Field’ is closed to new replies.