Is there any way to view your homepage in a preview mode, so that I can check how my posts will look on the homepage before publishing them (i.e. to make sure the featured image looks right etc).
1 comment
Comments are closed.
Is there any way to view your homepage in a preview mode, so that I can check how my posts will look on the homepage before publishing them (i.e. to make sure the featured image looks right etc).
Comments are closed.
I think you can set your post to
private
to view it privately on the homepage.See here.
Here is one idea to view
draft
posts on the site:Let’s reuse the
preview
parameter to add thedraft
posts to the current page view, for example:We then modify all frontend queries, for logged in users, with:
but we could use
is_main_query()
to restrict the modifications to the main query.ps: this might need some testing or adjustments … but you get the idea 😉