How to show popular posts in wordpress

Wordpress
Here I want to tech you how to get popular posts based on that post comment in wordpress withaout plugin. Display popular posts without plugin in wordpress | Get popular posts without plugin in wordpress To show lists of the popular posts in wordpress is very usefull features for getting post popularity wise or SEO to increase visitor or provide better output to the user. Many plugins are available to get popular posts in wordpress but here I want to show you how to get popular posts in wordpress without plugins. Opent function.php file and put it below code into them. [php] # Displays a list of popular posts <?php function dp_popular_posts($num, $pre='<li>', $suf='</li>', $excerpt=false) { global $wpdb; $querystr = "SELECT $wpdb->posts.post_title, $wpdb->posts.ID, $wpdb->posts.post_content FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish'…
Read More