Using query_posts with Custom Post Types & User Access Manager
-
I’m having trouble displaying custom post types with UAM. If I use following:
query_posts( array( 'post_type' => 'prospectus', 'orderby' => 'meta_value', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'publish' ) );then I can see all custom post types from the ‘Prospectus’ type. However, I see posts regardless of their UAM status. Let’s say I have a UAM group called “Special Access”, and when someone from that group is logged in, they see posts added to that group.
I imagine it looking something like this:
query_posts( array( 'post_type' => 'prospectus', 'orderby' => 'meta_value', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'publish', 'meta_query' => array('meta_key' => 'user-access-manager-group', 'meta_value' => 'Special Access') ) );but of course that doesn’t work.
The topic ‘Using query_posts with Custom Post Types & User Access Manager’ is closed to new replies.