[wp-hackers] Sorting Posts By Custom Meta Value

scribu scribu at gmail.com
Thu Jul 23 21:30:20 UTC 2009


>
> " JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id";
>
> but that was returning duplicated posts


You can add a GROUP BY wp_posts.ID to remove the duplicates.


-- 
http://scribu.net


More information about the wp-hackers mailing list