Skip to main content

Timeline for query_posts with meta_value

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jul 31, 2015 at 16:16 vote accept PerfectGohan
Jul 31, 2015 at 16:12 vote accept PerfectGohan
Jul 31, 2015 at 16:12
Jul 31, 2015 at 15:54 answer added bonger timeline score: 1
Jul 31, 2015 at 15:50 comment added bonger Wilco.........!
Jul 31, 2015 at 8:07 comment added PerfectGohan @bonger Agree with Pieter Goosen, will appreciate if you post it as an answer
Jul 31, 2015 at 5:47 comment added Pieter Goosen @bonger Please add your comment as an answer. This is useful info that will just rot and die in comments, it deserves to be in an answer ;-).
Jul 31, 2015 at 4:51 comment added bonger Have you still got the query_posts($args); running? If so remove that. Then in your pre_get_posts do a check for is_category( 'news' ) at the top. Then set the default years to "2014" by removing the check on empty( $_GET... and using $types = explode( ',', empty( $_GET['years'] ) ? "2014" : $_GET['years'] );
Jul 31, 2015 at 1:35 history asked PerfectGohan CC BY-SA 3.0