• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Custom post type not generating page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Custom post type not generating page

This topic is: resolved

Tagged: Custom Post Type, page not found

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 7 months ago by SavvyJackie.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 29, 2015 at 1:55 pm #154156
    D. van de Kamp
    Participant

    Hello,
    I created a cpt called projects. All works well. I can add projects, edit them, call excerpts on the homepage and on an archive page, but somehow when I want to see the actual post, it won't let me. It tells me the page doesn't exist. Any thought on that?

    Here's the code in functions.php

    add_action( 'init', 'create_projects' );

    function create_projects() {
    register_post_type( 'projects',
    array(
    'labels' => array(
    'name' => __( 'Projects' ),
    'singular_name' => __( 'Project' ),
    ),
    'has-archive' => true,
    'public' => true,
    'supports' => array( 'title', 'editor', 'genesis-seo', 'thumbnail', 'excerpt', 'genesis-cpt-archives-settings'),
    'has_archive' => true,
    'rewrite' => array('slug' => 'projects'),
    'taxonomies' => array( 'category'),
    )
    );
    }

    http://localhost
    May 29, 2015 at 2:35 pm #154163
    SavvyJackie
    Member

    Have you tried saving your Permalinks again?

    Settings -> Permalinks

    That sometimes is the issue.


    Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie

    Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂

    May 30, 2015 at 12:54 pm #154212
    D. van de Kamp
    Participant

    That totally solved it! Just went to the permalinks, did nothing but hit 'save' and problem was solved.
    I'm very grateful for that!

    May 30, 2015 at 1:11 pm #154213
    SavvyJackie
    Member

    You're welcome. Glad that worked. Please mark this post as resolved.

    Happy coding!


    Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie

    Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom post type not generating page’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble