I need to show all post to all visitors of the site by direct post URL.
I mean if post is not published and user is not logged in in any case anyone can see the post but not 404 page. Where I must perform changes?
Thanks!
I need to show all post to all visitors of the site by direct post URL.
I mean if post is not published and user is not logged in in any case anyone can see the post but not 404 page. Where I must perform changes?
Thanks!
You must be logged in to post a comment.
You need to add a corresponding query before
The Loop
. You can usequery_posts()
for this purpose:An example:
See the Type Parameters documentation here.
Hope this helps!