• 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

Replace "Posts" With Custom Post Type

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 › Replace "Posts" With Custom Post Type

This topic is: resolved

Tagged: articles, custom, post, type

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by Christoph.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 10, 2015 at 8:38 pm #151621
    Porter
    Participant

    Generally speaking, I've read to only use a custom post type if it's unique enough to warrant doing so. I'm considering creating an "Articles" CPT, though it's extremely similar to "posts", here's my pros and cons list.

    Pros:

    -Admin menu name will be "Articles" (I know I can change this with some PHP)
    -Url structure will be site.com/articles/the-article-title (desired)
    -Gets rid of tags, default archives, etc - I don't need any of this clutter, and won't be using it (articles are a small bit of the site).
    -Can leave the permalink structure as %postname% rather than %category%/%postname% (I feel this is better, confirm?)

    Cons:

    -They're so similar (not a big deal, but worth noting)
    -A bit more code in my site-specific plugin

    While I know it's generally only worth doing if it's different, can anyone chime in on why I should or shouldn't create this CPT? Not having the tags and archives (default archives, I'll be creating my own page / template) is a decent plus to me, though not a big deal. I'm under the impression that keeping the permalink structure simple at %postname% is beneficial, even if not now, or never significantly (I sort of feel like conflicts are easier the more complicated it gets). Any thoughts?


    Buy me a beer? | Try DigitalOcean VPS Hosting

    May 10, 2015 at 8:52 pm #151626
    Christoph
    Member

    Hi,

    I would say it doesn't make much of a difference whether you adjust posts to fit your needs or create an Articles CPT.

    The impression I´m getting is that you would prefer to have a CPT but are not sure if you are following "proper protocol".
    That´s the beauty of open source. You can (almost) do whatever you want.

    The simple %postname% structure is easier to read and if you are not planning on creating a lot of content that would benefit from the additional structure, you don't really need it.

    Just my two cents 😉


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    May 10, 2015 at 8:55 pm #151627
    Porter
    Participant

    That's exactly what I was hoping I would hear 🙂

    As you guess, I wanted the new CPT, but wasn't sure if was breaking any fundamental "rules". I seem to understand them just fine though, and "breaking" them (if it can even be called that), does no harm, so I think I'll do it. I've already adjusted the Admin Menu, so I'll simply hide posts and replace the position with "Articles". This will be slightly neater if I decide to use Advanced Custom Fields to add any content to those articles in the future as well.

    Thanks for the quick clarification 🙂


    Buy me a beer? | Try DigitalOcean VPS Hosting

    May 10, 2015 at 9:05 pm #151628
    Christoph
    Member

    I´m sure you will enjoy the CPT much better than having to stick with posts 🙂

    And ACF will certainly be a nice touch.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Replace "Posts" With Custom Post Type’ 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

© 2023 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