Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3703

    I would like the main index page to pull random posts everytime it is loaded instead of having the newest at the top. Is this possible?



    open up index.php and replace following code:

    $additional_loop = new WP_Query("paged=$paged&cat=".$k_option['gallery']['gallery_cat_final']."&posts_per_page=".$k_option['gallery']['post_count']);


    $additional_loop = new WP_Query("orderby=rand&paged=$paged&cat=".$k_option['gallery']['gallery_cat_final']."&posts_per_page=".$k_option['gallery']['post_count']);

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Can I set the homepage to random?’ is closed to new replies.