I am trying to retrieve all custom post types created by the current user.
I have this piece of code:
wp_get_current_user(); $args_my_items = array( 'posts_per_page' => 10, 'post_type' => 'mycustomposttype', 'post_author' => $current_user->ID); query_posts($args_my_items);
What ends up being returned are all posts of type "mycustomposttype". It does not filter by post_author.
Am I using the wrong query parameters? How can I filter by the current user?