Support » Fixing WordPress » Custom Query and Pagination

  • Resolved cmsnext


    I am trying to add pagination to the results of a custom query that I have created but am not able to do so.

    $querystr = "SELECT * wp_posts......;";
    $myValue = $wpdb->get_col($querystr);
    foreach ( $myValue as $theValue ) :
    here goes coding of getting the values and echo them
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }

    using wppagenavi does not work and I understand that it will not work as it will not be getting the paged value.

    but considering the above query, how can I add pagination possibly via wp_pagenavi or any other method
    thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Query and Pagination’ is closed to new replies.