When I logged out the URL generated a 404.
Correct.
Why can I see the page when logged in? Is this documented somewhere in the codex?
I think this is something that codex has but some parts are still not written, like this part for draft.
In the case of draft post your permalink will look like this:
?p=2898&preview=true
And it is not available when you are not logged out as you noted — 404 error page is what you will get.
The same error you will get also for the pending review status when you are not logged in, but the permalink will be the same as for the published post if you are logged in.
Related Posts:
- I can’t preview post’s change once they are published
- Can we have private drafts?
- Custom save button shows ‘Are you sure you want to…’ dialog
- I need to modify drafts using custom data from database and then publish it
- How to show or hide a post based on meta_value selection?
- Visual Studio SignTool.exe Not Found
- How can I delay the publishing of a page or post?
- How can I set a draft page as parent without publishing?
- Display a post’s publish date from 2112
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- WordPress plugin to publish to multiple remote WordPress blogs
- How to disable drafts?
- WordPress prompt checklist before publish?
- Publish post when edit post form submitted with enter/return pressed on keyboard
- Check before publishing, if already exist post with current custom field value
- How to make scheduled post preview visible to anyone?
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Why does publish_{custom-post-type} fire on update?
- Show recent published posts
- Does WordPress remove draft status automatically?
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Is there a way to know if a post has been published through XML-RPC?
- get_terms on save_post hook
- Save and Publish button not working after installing SSL
- Can I set a timer for pages to be published?
- What differences are there between a Privately Published post and a Draft post?
- How can I create custom button in post.php
- Disable “preview changes” button
- Where is the WP auto-save draft JavaScript?
- How to allow a user to make their post (ad) a draft, and then publish again without needing approval?
- WordPress Comments are automatically publishing
- save imported posts as drafts
- Update post meta on bulk edit / update
- How to modify Publish metabox?
- Hiding Draft Post In Admin
- Can’t schedule post for another time
- How to get the Tags on Publish post hook?
- publish_post called too early
- wp_publish_post to saved draft, permalinks broken
- Calling Different Custom Post Timestamps in a table
- Get publish post link?
- Controlled publishing in WordPress
- redirect deleted / drafted pages
- Change the text of the publish button to Save
- Remove “Save draft” button without using CSS
- problem with publish date not always appearing [duplicate]
- What is happening to make my Update/Publish button disabled?
- WordPress 4.9.8 doesn’t save if content has style=”
- I want to print a message in post ” After one month from publish date”
- What is the reason for the new_to_publish hook not working?
- After I publish a post where does it go
- Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public
- Should you manually ping new WordPress posts?
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- Authors should not publish
- How to add custom status to quick edit
- i am making text changes on my page show in preview not on live site, why? [closed]
- Is WordPress “publish” atomic?
- How to move post process to background
- Set page to draft on plugin deactivation
- How does redirect work when publish date changes and date in url changes?
- Hook when post is set from published to draft?
- My posts are getting to Auto draft when I try to Publish
- Gutenberg publish date datepicker
- How Google Indexer should only index published pages
- Publish and go to page [duplicate]
- Publish Post Action Not Working
- Is it normal for a scheduled post to say “Missed Schedule”
- Manage multiple wordpress installs (Best Practice)
- Users can only save their draft once before saving for revision
- Showing the next post’s title, even if it’s an unpublished post
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- Remove “minor-publishing” div from Publish admin metabox
- Edit the Publish Widget Options
- Default pages to be unpublished – possible?
- Return All Post from publish to draft [duplicate]
- Duplicate post on publish
- How is it possible to use a very reduced version of WordPress?
- Problems in updating a self-developed plugin
- when I Try to Create new Post or Page it goes Draft(I can’t post Anything)
- How to handle security on a wordpress site? [closed]
- Include user defined styles without including wp-load
- Automatically Updating Publish Date Bug
- A question on creating filters for custom posts using taxonomy
- I want to allow the use of a data-flw attribute in links in comments
- Best practice – pages – ACF or inline coding
- wpdb custom tables without plugin
- Check if CTP category taxonomy is set in shortcode
- Reusing header.php from Yii application
- Extract Information from post content (using regex?)
- Customise Grouped Product display in Woocommerce with custom column
- Page flickers in customization mode
- When is the wp-settings-[time] cookie generated?
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Dev and prod on the same database- dev version active for IOS
- Flexslider empty slide
- Custom Form Input not saving to Database
- One Post with different content, depending on a Page
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?