[Plugin: WP-PageNavi] Request page number as integer
-
How would you get the page number currently being displayed? I need to display, say 10 posts per page (no problem) but the first two on the first page are to look different (no problem). But when I then open page 2, the first two posts on that page also look like the posts on page 1 (problem, as they aren’t to be featured, old news).
How would i go about doing this? Have tried is_page() without solution, end of the working day as well so only a quick post. Used standard method for getting posts as on the wp-pagenavi website (not www.remarpro.com)
` $my_query = new WP_Query( array( ‘ID’ => $post_range, ‘order’ => ‘DESC’, ‘showposts’ => ’14’, ‘paged’ => get_query_var(‘paged’) ) );
//the loop and more stuff
//end loopwp_pagenavi( array( ‘query’ => $my_query ) );
wp_reset_postdata(); // avoid errors further down the page
- The topic ‘[Plugin: WP-PageNavi] Request page number as integer’ is closed to new replies.