WordPress.org

Support

Support » How-To and Troubleshooting » Custom post types not showing preview (404 error)

Custom post types not showing preview (404 error)

  • 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?

Viewing 1 replies (of 1 total)
  • 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,

Viewing 1 replies (of 1 total)
  • The topic ‘Custom post types not showing preview (404 error)’ is closed to new replies.
Skip to toolbar