Custom Post Type Single Page Not Working

Having issues with your custom post type (CPT) single page not working? Look no further, it may just need a quick permalink refresh in your WordPress website’s settings.

Refresh your permalink settings

Sometimes WordPress fails to read the correct URL. You should try to refresh your website’s permalinks.

  1. Open your WordPress website’s dashboard;
  2. Navigate to Settings > Permalinks;
  3. Click the Save Changes button;
  4. Refresh your singles page.

Understand WordPress hierarchy

You should first┬áread up on WordPress’s template hierarchy to fully understand how the single post-types work.

Check your custom post type name

You need to check if you’re using the right custom post type name. You should var_dump() the PHP code below and debug your single page using this data.

var_dump( get_post_type() );