Tuesday, 17 September 2013

How to Show Post in "Random Order " using Wordpress..!!!

Dr-wordpress : Today i am going to share a method of showing random POST in any word press page..just like QUIZ example or Captacha.You can also use it on different places where you want to show random POST's in wordpress...


      while ( have_posts() ) : the_post();
$post_thumbnail_id = get_post_thumbnail_id( get_the_id() ); 
 $url=wp_get_attachment_image_src(  $post_thumbnail_id,"medium" );

     <h1><?php the_title() ?></h1>

Subscribe us for Important Knowledge of wordpress ..your's suggestions are most welcomed.

No comments:

Post a Comment