You need to change into the code, by default wordpress shows only post which are published. In your case you need to change the
$args = array(
'post_status' => array( 'publish', 'draft')
);
$query = new WP_Query( $args );
for more info you can look into this link:
Another thing you can alter your current query using query post like query_posts(&post_status=draft)
Related Posts:
- Passing current cookies in wp_remote_get to get Draft Post Preview
- How to disable drafts?
- Does WordPress remove draft status automatically?
- Don’t post or draft if post already exists
- What differences are there between a Privately Published post and a Draft post?
- Bulk unpublish posts between specific dates (e.g. from April 2017 and earlier)?
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Hiding Draft Post In Admin
- Lost draft under all posts and drafts
- How to get the old WordPress Draft Editor view back with the Word count?
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- Preview page/post revisions without overwriting current content
- Hook when post is set from published to draft?
- My posts are getting to Auto draft when I try to Publish
- How do I prevent draft posts from being accessible publicly?
- Connection dropped due to file size
- WordPress is creating a lot of draft posts
- Return All Post from publish to draft [duplicate]
- How to check if post meta key exists or not in wordpress database
- Custom Post Types, slug, archive and SEO plugins
- get all posts ID from a category
- Portable Post Links
- Related Posts by Multiple Tags?
- Action hook ‘wp’ firing twice… why?
- Manipulate post category after time
- WP REST API, query total posts in a category
- how to enable different number of revisions for different blogs when using WPMU?
- 404 error after publishing a post
- How to remove_filter that filters iframes in posts? [duplicate]
- Showing Thumbnail from Previous and Next Posts
- How to enqueue scripts depending on post formats?
- How to add a custom field after wp post
- What Is meta_id In wp_postmeta?
- the_posts filter been called multiple time
- Submitting POST data to a custom page template triggers a 404, why?
- Reset/Reorder posts ID in the MySQL wp_posts table
- How to prevent WordPress from updating the modified time?
- Custom WP_QUERY $args
- Dynamic carousel on individual posts
- Prepend or add an Image to the content of a Post
- Remove all links in post content
- Select a specific post to display in a news box
- Having trouble with the_post_thumbnail to display thumbnail with custom size
- I get this error message when I try to add a module to a course on my website using Sensei plugin
- Getting value from get_post_custom
- Publish post’s date is set to Nov 30 -0001
- How to exclude visited posts from loop
- Get all comments of author’s posts
- Get posts and include taxonomy term
- Adding bootstrap classes to video shortcodes
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Single Post in Tab/Slider
- get_posts from a category id doesn’t work
- Change page creation layout
- posts_per_page returning only one post
- get_posts not pulling the correct number of posts
- If custom field is empty, use one from a previous post
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- How to change the order of elements within a post?
- Right align a youtube video
- Post meta not working
- Classic Button in Classic editor
- Css and function issue on author archive page
- How do I fix broken links to images in imported posts’ post_content?
- Blog open in new Tab
- How to add a ‘News’ section to specific posts in WordPress
- Get post attachment with post id
- How to show random post order in specific category each refresh this category page
- Get Category in save_post Hook
- Refresh wordpress post without reloading browser
- I have two post types in the same query, how can I use CSS to select only one post type?
- how to make special modal for each post
- How can I set the permalink of an article / page equal to the permalink of an existing article / page?
- How to show category image if no featured image is set?
- How to add category base prefix to wordpress permalink
- Get post id outside loop : Notice: Trying to get property of non-object
- WP_Query to get posts in a specific tag or has post_format
- Post formatting bug in WordPress
- Pagination for single post
- WordPress Request Post All Post ID in a Loop? [closed]
- Sort / Filter Queries
- Adding image in title
- Editing WP Plugin
- Bulk replacing content of multiple pages/posts?
- How can add posts without category into category
- Count > 1 Navigation Slider
- Get first comment link on the post itself
- Can’t match title in database
- Setting default category for display
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- how to add pagination to the organize series plugin
- Index.php is ordering posts strangely
- Exclude sub sub categories from displaying in the archive page
- How do I add an article to specific page?
- Even/Odd every two posts
- How can I show the positive and negative comments for a same post separately?
- What function does the loop of displaying posts?
- The WordPress wp_posts data table
- How to automatically convert a form with HTML link into post
- WordPress Post Updating is Not Working