I have been a long time user of time-machine plugin, it works great until I found out that I have to exclude some post from some cats. I realize that by default this plugin does not have those function. I did a digging and found this (at line 233):
$q = "SELECT ID, post_title, post_date, post_excerpt, comment_count FROM $wpdb->posts WHERE post_status='publish' AND post_type <> 'attachment' AND post_type <> 'revision' $tm_private $tm_pages AND $q_range $tm_current ORDER BYpost_date
I think this is the place to mess around to do what I want. But with my lacks of knowledge of sql’s, I need some help coding.
Logically in human language it probably goes like this:
get data FROM wpdb->post (like original code above) then cross the data with wpdb->tems NOT IN term ID ‘1,2,3’.
Any suggestion appreciated
- The topic ‘excluding post from certain category’ is closed to new replies.