Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter camweb21

    (@camweb21)

    For anyone in the future with this issue I fixed it with the following:

    <?php
    $mypost = array(
    ‘post_type’ => ‘horse’,
    ‘orderby’=>’title’,
    ‘order’=>’ASC’,
    ‘date_query’ => array(
    array(
    ‘column’ => ‘post_date()’,
    ‘year’ => date(‘Y’)-5,+4,
    )
    )
    );
    $loop = new WP_Query( $mypost );
    ?>

Viewing 1 replies (of 1 total)