WordPress.org

Forums

Custom Post Type UI
[resolved] Viewing new post type (5 posts)

  1. nuonis
    Member
    Posted 1 year ago #

    Hi, thank you so much for the plugin! I have what is probably a stupid question - I after a couple of hours of trying to make it work, I can't figure out how to show all the new post types (like pulling all posts in a category).

    For example, let's say I have http://www.domainname.com. I then create a post type called "puppies". In that post type, I'll create a post called "Adopt a Puppy". I'm able to view the new post fine if I go to the direct link: domainname.com/puppies/adopt-a-puppy. My problem is that I'm trying to create a menu item that pulls everything under the "puppies" post type, but it gives me a 404 error when I go to domainname.com/puppies.

    I hope this makes sense and I hope someone can help me!

    Sinoun

    http://wordpress.org/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    One thing you'll want to check is seeing if you have the CPT set up to have archives. You should see a couple links that say "Advanced Label Options" and "Advanced Options". You'll want to click the "Advanced Options" one and make sure you have your post type sets "Has Archive" to true. It's false by default.

    After that, you may want to configure your theme to have a different template file for the post type, for which it would be something like archive-puppies.php.

    http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-post-types-archive-page-in-wordpress/

    The link above will have a bit more info for that part.

    Regarding the menu link, not sure how readily WP will recognize new post types, so you may have to a custom link to the archive url, which isn't the end of the world.

  3. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Just wanted to check and see if anything above helped resolve your issues.

  4. nuonis
    Member
    Posted 1 year ago #

    You're so awesome, thank you. :) But I decided to go a different route. My client's needs are a little more flexible so I was able to do something simpler.

  5. Michael Beckwith
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you found a solution somehow.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.