Querying for multiple post types in SQL
My site is using a plugin for displaying an archive widget. It only displays the 'post' post-type. I currently have three different post-types. Looking through the code I found:
$where = apply_filters( 'getarchives_where', "WHERE post_type = 'post' AND post_status = 'publish' AND post_date = now()" );
It seemed like a easy fix. First I changed WHERE post_type = 'post' to WHERE post_type = 'privacy, security'
but that didn't work.
Then I did WHERE post_type = array('privacy', 'security') AND post_status = 'publish' AND post_date = now()" );
but that also didn't work.'
Topic post-type-support post-type Wordpress
Category Web