title: Wordpress AJAX Load More Orderby Meta_VALUE_NUM
body: <p>Helo,
  I have multiple meta_key value pairs inside my custom posts. So to work around this what I did is that I ran a WP_QUERY initially which creates an array of posts ID which I then pass to load more to load those.</p>
  
  <p>The array that I build using WP_Query is in the correct order. However when I use the IDs in post_in parameter it is not displaying them in the given order. I have also tried to give <code>orderby="meta_value_num"</code> parameter but it doesnt work either. </p>
  
  <p>Here is WP_QUERY which is working perfectly</p>
  
  <pre><code>$loop = new WP_Query( 
                                  array( 
                                        'post_type' =&gt; 'properties', 
                                        'posts_per_page' =&gt; -1,
                                          'meta_query' =&gt; array(
                                                  array(
                                                      'key' =&gt; 'listing_type',
                                                      'value'   =&gt; array(3,2),
                                                      'type'   =&gt; 'NUMERIC',
                                                  ),
                                                  array(
                                                      'key'     =&gt; 'payment_status',
                                                      'value'   =&gt; 'yes',
  
                                                          ),                                              
                                                  array(
                                                      'key'     =&gt; 'expired',
                                                      'value'   =&gt; 'no',
  
  
  
   - ),
  
                          ),
                                          'orderby' =&gt; 'meta_value_num',
                                          'meta_key' =&gt; 'listing_type',
                                          'order' =&gt; 'DESC' 
                                        )); 
  </code></pre>
  
  <p>Here is the shortcode:</p>
  
  <pre><code>[ajax_load_more post_type="properties" post__in="'.implode(',',$featured).'" posts_per_page="10" scroll="false" transition="fade" button_label="'.$l_more.'" button_loading_label="'.$l_more_2.'" container_type="ul" css_classes="items",orderby="meta_value_num" meta_key="listing_type"]
  </code></pre>
  
  <p>However it doesnt order posts as it should because $featured array has it in required order. Even if I remove order by and meta_key parameter it doesnt work.</p>
  
  <p>Please Help
  Ahmar</p>