Plugin Directory

Changeset 1212472


Ignore:
Timestamp:
08/04/2015 10:57:09 AM (11 years ago)
Author:
darko.atanasovski
Message:

Show random posts if there are no tags on the post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-float-related-posts/trunk/RelatedPosts.php

    r1212456 r1212472  
    33Plugin Name: WP RelatedPosts
    44Description: Display related posts by taxonomy, and increasing your pageviews by user
    5 Version: 1.0.6
     5Version: 1.0.7
    66Author: Darko Atanasovski
    77Author URI: http://atanasovsky.wordperss.com
     
    8080        if( is_single() && count( $tags ) > 0 )
    8181        {   
    82             if( get_option('rp-show-random') == 1 && $posts_num < 3 && $posts_num > 0 )
     82            if( get_option('rp-show-random') == 1 && $posts_num < 3 && $posts_num >= 0 )
    8383            {
    8484                $excluded_ids = array($post->ID);
Note: See TracChangeset for help on using the changeset viewer.