Changeset 173

Show
Ignore:
Timestamp:
06/21/08 18:11:12 (2 months ago)
Author:
zamoose
Message:

Adding support for WP Related Posts in addition to much older Related Posts plugin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sidebar.php

    r156 r173  
    2121        } 
    2222         
    23         if (is_single() || is_archive()) { 
    24                 if(function_exists(related_posts)){ ?> 
     23        if ((is_single() || is_archive()) && function_exists(related_posts)){ ?> 
    2524        <li><h2>Possibly Related</h2> 
    2625        <?php related_posts(); ?> 
    2726        </li> 
    2827        <?php  
    29                 } 
    30         } ?> 
     28        } 
     29         
     30        if ((is_single() || is_archive()) && function_exists(wp_related_posts)) {?> 
     31        <li><h2>Possibly Related</h2> 
     32        <?php wp_related_posts(); ?> 
     33        </li> 
     34        <?php  
     35        }?> 
    3136        <?php endif; ?> 
    3237