• Hello folks.

    I use wp as an estate website, and i have a problem with the next post link

    <?php
    if (!empty($_POST['isearch'])) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $results = new WP_Query(array(
    "meta_query" => get_estate_meta_query(),
    "post_type" => "estate",
    'posts_per_page' => 10,
    ));
    ?>

    this is my result query

    and

    $estate = new WP_Query('post_type=estate'); if($results->have_posts()) : while($results->have_posts()): $results->the_post();
    
    // stuff here
    
    endwhile; endif;

    and my problem is when i add next_posts_link to my loop nothing happens

    could someone give me a hint?

The topic ‘Paginate problem’ is closed to new replies.