Custom post types not showing preview (404 error) (2 posts)

  1. ivycat
    Posted 4 years ago #

    It works fine if you save it as a draft and then preview it. However, the preview changes button doesn't work before it is saved as a draft or published.

    Is there a way to fix this?

  2. FranklynJones
    Posted 4 years ago #

    Hi there,

    I suppose you may have found the solution to this, but for others, as it took some time for me to get this to work. When you register a cpt, you need to add the line:

    'publicly_queryable' => true,

Topic Closed

This topic has been closed to new replies.

About this Topic