Exclude by tag?
-
Hi, I am using your Auto-Prune plugin which is working great even though it has not been updated recently, so I am not sure if you are actively supporting it. I would be happy to buy you multiple cups of coffee if you could add a way exclude by tag, while including by category. We have a tag for “ongoing” which is applied to posts that should never be auto-purged, so I modified the query in your plugin as follows:
// Do only the last 50 (by date, for 1 cat) $myposts = get_posts('category=' . $cat_id.'&tag__not_in => array(3194)&post_type='.$the_type.'&numberposts='.$this->conf['settings']['max_reads_in_run']. '&order=ASC&orderby=post_date');
which is probably totally wrong as I am not a coder ;-( Is there a better way to do this? I’d be happy to offer you $50 USD in order to make this change to the plugin so this could be set in the admin… Thanks for your help and thanks for writing the plugin!
The page I need help with: [log in to see the link]
- The topic ‘Exclude by tag?’ is closed to new replies.