I have been busy with exams during last few weeks. That’s why I haven’t been here for a long….
Anyway, I am trying to create a “Random post/page’ link for my site. Read few tutorials on WP and other sites on how to do it. They recommended using a custom page template with the rand function like the following and then assigning that page template to a page.
query_posts(array('orderby' => 'rand', 'showposts' => 1));
if (have_posts()) :
while (have_posts()) : the_post(); ?>
Wow, fast reply and it works! Thank you Prasanna for coming to my rescue.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.
If you require urgent assistance, you may like to consider our Priority Support option.