Log in with username/password: lyceum/lyceum

Changeset 1035

Show
Ignore:
Timestamp:
06/03/07 20:55:45 (1 year ago)
Author:
jjb
Message:

Only show each post once, even if it is in multiple categories.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lyceum/wp-includes/template-functions-general.php

    r1034 r1035  
    388388      } 
    389389   } elseif ( 'postbypost' == $type ) { 
    390       $arcresults = $wpdb->get_post_results("*", "post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); 
     390      $arcresults = $wpdb->get_post_results("DISTINCT posts.*", "post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); 
     391trace('$arcresults', array_print($arcresults)); 
    391392      if ( $arcresults ) { 
    392393         foreach ( $arcresults as $arcresult ) { 
Log in with username/password: lyceum/lyceum