I have a custom post type setup called website I thought using the code below would display only the logged in users posts but it's displaying all of the custom posts even those not belonging to the logged in user. Can someone show me what the query is to get only the custom posts by the logged in user
global $current_user;
get_currentuserinfo();
$authorID = $current_user->ID;
$args = array(
'post_type' => 'post',//or whatever you need
'posts_per_page' => 5,
'author' => $authorID
);
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query($args);
