WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
Idea is good, bug + no support is not good (2 posts)

2 stars
  1. Erica
    Member
    Posted 1 year ago #

    A client of mine who doesn't know PHP was using this code. I spent hours debugging it, trying to figure out why there was 404 errors for my custom post type list pages (not the single). Finally I decided to get rid of the plugin. To save myself some time, I exported the code and added to the theme functions file. Upon doing so I found a few problems:

    'rewrite' => array('slug' => '')
    should be
    'rewrite' => array('slug' => 'post-type-slug','with_front' => false),

    You also need to add a new option:
    'has_archive' => true

    These to me our a big flaw. You should be able to treat custom post types as posts and have an individual listing page. After adding these two items the 404 errors went away and I was able to use my custom archive-post-type.php file.

    I hope this helps at least one person because I know I was very frustrated after wasting so much time trying to figure out what was wrong.

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 8 months ago #

    8 months late, but cases like this are good to report on the support tab, we don't regularly comb through the reviews, but we do the support forum. That way, we can be made aware of issues and get them resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.