Timeline for Duplicate posts being displayed when querying Custom Fields
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 5, 2012 at 14:35 | answer | added | Tommixoft | timeline score: 2 | |
Jun 5, 2012 at 14:32 | answer | added | Pontus Abrahamsson | timeline score: 1 | |
Jun 5, 2012 at 14:25 | comment | added | Dan Whiteside | Managed to do some more research on different ways of querying custom field data and this solution doesn't duplicate the contents <?php $args=array( 'meta_value'=>'Ahri', 'post_status'=>'publish', 'post_type'=>'matches', 'orderby'=>'date', 'order'=>'DESC' ); $wp_query= null; $wp_query = new WP_Query(); $wp_query->query($args); ?> | |
Jun 5, 2012 at 14:04 | comment | added | Dan Whiteside | I tried a few different examples but this is the only one I could see some results with | |
Jun 5, 2012 at 13:26 | comment | added | helenhousandi |
Not necessarily relevant to the issue at hand, but why aren't you using a WP_Query instance or modifying the main query via pre_get_posts ?
|
|
Jun 5, 2012 at 13:10 | history | asked | Dan Whiteside | CC BY-SA 3.0 |