i`m building a gallery with a few houndred artworks (custom posts) and I wonder if I can have them displayed randomly and paged at the same time.
With the following code when each page reloads the posts change possitions and some reappear in multiple pages.
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array('post_type' => 'artworks', 'orderby'=>rand, 'paged'=>$paged, 'posts_per_page' => 60); query_posts($args);
Is it possible to first randomise their possition and then divide them into pages (but to keep their possition for current session)?
Can this be done with wp-pagenavi? Any ideas?
- The topic ‘[Plugin: WP-PageNavi] is this possible? random posts while paged’ is closed to new replies.