Ejemplo n.º 1
0
?>
			<button class="PulldownGo" type="submit">GO</button>
		</form>
			</div>
    	</div>

    	<div class="left">
        	<div class="pagination-title">
            	<?php 
if ($_GET['country']) {
    echo $_GET['country'];
}
?>
        	</div>
			<div class="pagination-numbers"><?php 
echo $getTadaFunc->getPagination();
?>
</div>
    	</div>

    </div>


    <div class="col-sm-12">
      <article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
// 		    'posts_per_page' => 500,
// 		    's' => $title,
// 		  	'paged' => get_query_var( 'paged' ),
// 		  	'meta_query' => array(
// 		  		array("key"=>"author_1_0_name","value"=>"633", "compare" => "LIKE"),
// 		  	)
// );
echo "<pre>";
var_dump($published);
echo "</pre>";
?>
		
       	<?php 
query_posts($published);
global $wp_query;
//echo "<pre>";var_dump($wp_query->found_posts);echo "</pre>";
if ($wp_query->found_posts < 500) {
    // Start the loop.
    while (have_posts()) {
        the_post();
        the_ID();
        echo "<br>";
        //the_title(); echo "<br>";
        // End the loop.
    }
    echo $searchQuery->getPagination();
} else {
    //var_dump("OVER 100");
    echo "Search result has more than 500, please try again.";
}
get_footer();