Plugin Directory

Changeset 2542106


Ignore:
Timestamp:
06/03/2021 03:29:38 PM (5 years ago)
Author:
mattlitzinger
Message:

Updated README.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • recommend/trunk/README.txt

    r2542103 r2542106  
    2727If you'd rather display the like count in your template files, use the below code: 
    2828
    29 ```
    30 <?php
    31     if( function_exists('wp_recommend_show_likes') ) {
    32         wp_recommend_show_likes();
    33     }
    34 ?>
    35 ```
     29``<?php if( function_exists('wp_recommend_show_likes') ) wp_recommend_show_likes(); ?>``
    3630
    3731== Shortcodes ==
     
    3933The following shortcode will display the like count on any post. 
    4034
    41 ```
    42 [recommend-likes]
    43 ``` 
     35``[recommend-likes]`` 
    4436
    4537The 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. 
    4638
    47 ```
    48 [recommend-liked-posts post_type="post" posts_per_page="5"]
    49 ```
     39``[recommend-liked-posts post_type="post" posts_per_page="5"]``
    5040
Note: See TracChangeset for help on using the changeset viewer.