westarinfo
asked on
WordPress Random Post Code
I'm not a programmer. I've been messing around with this for a couple of days after reading many articles online. I hope one of you experts can help me. I'm trying to create a page on a WordPress blog to display all post thumbnails in random order.
The blog is here http://meatbeerbabes.com
The "random post" link on the top-right hand of the header is a "page" that is linked to a page template I created (page-rando-post.php) and it should produce a page similar to the one index.php produces but it should sort all posts randomly.
I do appreciate your help. I've attached two files, index.php and the page template I created (experimented with), page-random-post.php.
Thank you!
index.php
page-random-post.php
The blog is here http://meatbeerbabes.com
The "random post" link on the top-right hand of the header is a "page" that is linked to a page template I created (page-rando-post.php) and it should produce a page similar to the one index.php produces but it should sort all posts randomly.
I do appreciate your help. I've attached two files, index.php and the page template I created (experimented with), page-random-post.php.
Thank you!
index.php
page-random-post.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://designwoop.com/2011/01/how-to-display-random-posts-in-wordpress-without-a-plugin/