mysql






Displaying Recent Posts with Summary <ul> <?php $the_query = new WP_Query( ‘showposts=5’ ); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <li><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a></li> <li><?php echo substr(strip_tags($post->post_content), 0, 250);?></li> <?php endwhile;?> </ul> You may change the showposts=5 and content limit of 250 character of […]

Display Recent Posts in WordPress