2

To enable search on a custom post type archive, I use the pre_get_posts hook. Add this code to your theme functions.php file. Here is an example of enabling search on a post type called "resource": // Enable resource search add_action('pre_get_posts','pk_enable_resource_search', 1000); function pk_enable_resource_search( $query ) { ...


1

I have this problem as well, @tony-djukic. I have an administrator user that can see two posts of a custom post type. I have two subscriber users, each are able to only see the opposite post as the other. Here's what I'm using to (apparently not) get all the posts: get_posts(array( 'numberposts' => -1, 'post_type' => 'my-cpt', '...


Only top voted, non community-wiki answers of a minimum length are eligible