//////Type & Status Parameters - Show posts associated with certain type or status. 'post_type' => array( //(string / array) - use post types. Retrieves posts by Post Types, default value is 'post'; 'post', // - a post. 'page', // - a page. 'revision', // - a revision. 'attachment', // - an attachment. The default WP_Query sets 'post_status'=>'published', but atchments default to 'post_status'=>'inherit' so you'll need to set the status to 'inherit' or 'any'. 'my-post-type', // - Custom Post Types (e.g. movies) ), 'post_status' => array( //(string / array) - use post status. Retrieves posts by Post Status, default value i'publish'. 'publish', // - a published post or page. 'pending', // - post is pending review. 'draft', // - a post in draft status. 'auto-draft', // - a newly created post, with no content. 'future', // - a post to publish in the future. 'private', // - not visible to users who are not logged in. 'inherit', // - a revision. see get_children. 'trash' // - post is in trashbin (available with Version 2.9). ),
There are currently 1 users browsing this thread. (0 members and 1 guests)