We'll create fresh WordPress site with Recommend installed. You have 20 minutes to test the plugin after that site we'll be deleted.
By default, the like count will be displayed below the content for individual posts across all post types. You can disable this in the plugin settings or define which post types to include.
If you’d rather display the like count in your template files, use the below code:
<?php
if( function_exists('wp_recommend_show_likes') )
wp_recommend_show_likes();
?>
The following shortcode will display the like count on any post.
[recommend-likes]
The following shortcode will display a list of most liked posts. There are two optional parameters to fine tune the displayed results: post_type
and posts_per_page
. The default values for these parameters are shown in the example below.
[recommend-liked-posts post_type="post" posts_per_page="5"]