Tuesday, October 4, 2022
HomeWordPress Developmentwp question - I need to seize the final day's (right this...

wp question – I need to seize the final day’s (right this moment) posts in a class within the numbered order in acf


I need to seize the final day’s (right this moment) posts in a class within the numbered order in acf. I’m utilizing the code beneath. can type by class. however it does not simply convey up right this moment’s posts however all posts. the place am i doing unsuitable?

 <?php 
   $right this moment = date('Ymd');
           $args = array(
            'cat'  => array(4,),
            'posts_per_page' => '30',
            'date'  => 'At this time',
            'post_type' => 'publish',
            'post_status'  => 'publish',
            'orderby' => 'meta_value_num',
            'order' => 'asc',
            'meta_key' => 'acf_sira',
            'paged'             => $paged,
             'post__not_in'      => $exclude_array
          );

            $question = new WP_Query($args);

            whereas($query->have_posts()) : $query->the_post();
        ?>

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments