How to make WPQuery custom post type work in Twig / Timber

Im totally new to Twig and Timber. I was reading their doc and watch some tutorials however I cannot get it to work.

I have this WP Query with custom post type and ACF field:

    <?php           $  args = array( 'post_type' => 'what_our_clients_say', 'posts_per_page' => 2 );           $  loop = new WP_Query( $  args );           while ( $  loop->have_posts() ) : $  loop->the_post();               echo '<div class="what-our-client-say-single-wrapper p-relative aos-init aos-animate" data-aos="fade-up" data-aos-delay="100">';               echo '<div class="what-our-client-say-single-wrapper-violet"></div>';                 echo '<div class="what-our-client-say-inner-wrapper p-relative">';                 echo '<div class="what-our-client-say-inner-wrapper-img"><img src="' . get_field('what_our_clients_img') . '" class="img-client img-fluid"></div>';                 echo '<div class="what-our-client-say-inner-wrapper-all-txt"><div  class="what-our-client-say-inner-wrapper-header"><h3>'.get_the_title().'</h3></div>';                 echo '<div class="what-our-client-say-inner-wrapper-txt"><p>'.  get_the_excerpt() .'</p></div><div class="what-our-client-say-inner-wrapper-who"><p>'. get_field("what_our_clients_say_who") .'</p></div>';                 echo '</div></div><a href="https://pragmaticbrains.com/case-study" target="_blank" class="button big primary-colorbg no-hover what-our-client-say-special-btn">READ MORE';                 echo '</a>';               echo '</div>';           endwhile;           wp_reset_postdata();        ?> 

And when I pass it to php file it works. However when I try to make it work in .twig file it doesn”t. My main problem is not with fields or excerpt / title parts (which I convert to: {{ post.title }} but with this loop:

 $  args = array( 'post_type' => 'what_our_clients_say', 'posts_per_page' => 2 );           $  loop = new WP_Query( $  args );           while ( $  loop->have_posts() ) : $  loop->the_post(); (...)    endwhile;           wp_reset_postdata();   

part. I would be very grateful for your help

Use WPQuery to match to specific repeater row in post

So i have a repeater inside post-type ‘properties’ that stores Lot No and Auction Date for all the Auctions a property is in.

When going into an event page, say for 12th August it needs to list all of the properties in this auction in Lot No order.

When i use WP Query i’m doing it as so:

function my_posts_where( $  where ) {    $  where = str_replace("meta_key = 'auctions_$  ", "meta_key LIKE 'auctions_%", $  where);    return $  where; }  add_filter('posts_where', 'my_posts_where');          $  args = array (             'post_type'=>'properties',             'post_status'=>'publish',             'posts_per_page'=> 40,             'paged'=> $  paged,             'suppress_filters' => false,             'meta_query' => array(              'proparray' => array(                'key' => 'auctions_$  _auction_date',                'value' => $  today2,                'compare' => 'LIKE',              ),              'lot-nos' => array(                'key' => 'auctions_$  _lot_no',                'type' => 'NUMERIC',              ),         ),        'orderby' => array(           //  'auction-dates' => 'ASC',             'lot-nos' => 'ASC',         ),           );         $  wpb_all_query = new WP_Query($  args); 

My problem is that it’s picking up Lot Nos from other rows. So if a property has the following date:

Auction Date : 7th June 2020 Lot No: 2 Auction Date: 12th August 2020 Lot No: 14

It is picking up the auction date 12th August 2020, but ordering it as Lot No 2, NOT 14. I need it to match to the specific row of the date in question, then get the Lot No from that row. is this possible?

Need Help For WPQuery WHEREIN Clause

This code is working fine but when I select the only Bathroom Type It’s not working. Please help me so that my multiple search system can be work properly.

$  Bathroom_Type = implode(',', $  _POST['room_type']); $  style_type = implode(',', $  _POST['style_type']);  $  args = array( 'post_type' => 'MyGallery', 'meta_query'=> array( 'relation' => 'AND',         array(             'key' => 'Room',             'value' => $  Bathroom_Type,             'compare' => 'IN',             ),           array(             'key' => 'Style',             'value' => '$  style_type',             'compare' => 'IN',             )             )             );      //Show Result     $  query = new WP_Query($  args);      if ( $  query->have_posts() ) {             while ( $  query->have_posts() ) {                      $  query->the_title();                    echo the_title();           }          }