WordPress : How to change Ordering 'Ajax Load More' Plugin
<p>'Ajax Load More' Plugin has installed on my website, i want to change Ordering</p>

<p>there is <code>spacial</code>field in <code>wp_posts</code> Table On <code>DB</code></p>

<p>But I can't how to set in on my posts</p>

<pre><code>&lt;option value="spacial" selected="selected"&gt;VIP (default)&lt;/option&gt;
&lt;option value="date"&gt;Date&lt;/option&gt;
</code></pre>

<p>changed on :</p>

<pre><code> plugins / ajax-load-more / admin / shortcode-builder / shortcode-builder.php
</code></pre>

<p>So it is :</p>

<pre><code>&lt;div class="inner half"&gt;
   &lt;label class="full"&gt;&lt;?php _e('Order By', 'ajax-load-more'); ?&gt;:&lt;/label&gt;
       &lt;option value="spacial" selected="selected"&gt;VIP (default)&lt;/option&gt;
   &lt;select class="alm_element" name="post-orderby" id="post-orderby"&gt;
       &lt;option value="date"&gt;Date&lt;/option&gt;
       &lt;option value="title"&gt;Title&lt;/option&gt;
       &lt;option value="name"&gt;Name (slug)&lt;/option&gt;
       &lt;option value="menu_order"&gt;Menu Order&lt;/option&gt;
       &lt;option value="author"&gt;Author&lt;/option&gt;
       &lt;option value="ID"&gt;ID&lt;/option&gt;
       &lt;option value="comment_count"&gt;Comment Count&lt;/option&gt;
       &lt;option value="modified"&gt;Modified&lt;/option&gt;
       &lt;option value="meta_value_num"&gt;meta_value_num&lt;/option&gt;                   
   &lt;/select&gt;
&lt;/div&gt;
</code></pre>

<p>But Nothing has changed and posts don't sort as i want</p>

<p>Shortcode Output on <code>Admin Panel &gt; Ajax Load More &gt; Shortcode Builde</code> :</p>

<pre><code>[ajax_load_more post_type="post" orderby="spacial"]
</code></pre>

<p>Where should i put 'shortcode-builder' Code ?</p>

<p>------------------- Updata -------------------</p>

<p>You mean Admin Panel > Apearacne > Editor > main Page (Home page)</p>

<p>I can found :</p>

<pre><code>echo do_shortcode('[ajax_load_more category__not_in=1 '.$query.'  button_label="More Posts" orderby="title" order="DESC"  posts_per_page="20" ]');
</code></pre>

<p>When i change <code>orderby</code> To <code>spacial</code> it doesn't works</p>

<p>Also I try :</p>

<pre><code>&lt;?php 
    $cat = get_category( get_query_var( 'cat' ) );
    $category = $cat-&gt;slug;

    if (!empty ($category))
        $query .= ' category="'.$category.'" ';
    if (isset ($_GET["province"]) &amp;&amp; !empty($_GET["province"]))
        $query .= ' meta_key="province" meta_value="'.$_GET["province"].'" ';
    if (isset ($_GET["city"]) &amp;&amp; !empty($_GET["city"]))
        $query .= ' meta_key="city" meta_value="'.$_GET["city"].'" ';
    $query .= ' ORDER BY SPACIAL DESC';
    echo do_shortcode('[ajax_load_more category__not_in=1 '.$query.'  button_label="More Posts" posts_per_page="20" ]');

?&gt;
</code></pre>