Skip to main content
6 events
when toggle format what by license comment
Aug 3, 2017 at 9:56 answer added Jacob Peattie timeline score: 0
Aug 2, 2017 at 13:15 review Close votes
Aug 5, 2017 at 9:32
Aug 2, 2017 at 12:59 comment added kero The problem with your code is as the error says: there is no column(!) named distribution. It would need to be something like AND (pm.meta_key = 'distribution' AND pm.meta_value != '1') (pm for shortening my code here, use wpdb->.. instead). Still not sure if this SQL works. What if a post does not have this meta key? Anway, the linked answer should solve this
Aug 2, 2017 at 12:57 comment added kero Possible duplicate of Can I exclude a post by meta key using pre_get_posts function?
Aug 2, 2017 at 12:46 review First posts
Aug 2, 2017 at 13:50
Aug 2, 2017 at 12:41 history asked parasomnist CC BY-SA 3.0