Enhanced Version of Custom Post Type UI Plugin (v0.7)

Here’s an enhanced version of Brad Williams’ excellent Custom Post Type UI plugin for WordPress.

New Features:

  • Admin Menu Icons – Adds ability to set admin menu icons for post types via the ‘menu_icon’ field.
  • Rewrite With Front – Adds ability to set the rewrite ‘with_front’ option for both post types and taxonomies.

Aside from the actual plugin, which you can read about on Brad’s blog, I was inspired by a comment made by Rofflox on the WordPress.org support forums.

Download Custom Post Type UI Enhanced 0.7 (Newest Version)
Download Custom Post Type UI Enhanced 0.6.1

If you’d prefer I list line-by-line changes, request it in the comments; I really wouldn’t mind but I’m not going to spend the time unless people want it.

This entry was posted in Work and tagged , , , , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Martijn
    Posted December 18, 2010 at 4:09 am | Permalink

    Thanks! this was exactly what I needed. Can’t believe that rewrite with front is not in the original plugin.

    • Posted December 18, 2010 at 8:11 am | Permalink

      I know right?! I messaged the original author to have it implemented but he didn’t really seem interested, which was a bit disheartening.
      It’s nice to know someone besides me finds this modification useful :)

  2. Posted April 28, 2011 at 6:36 am | Permalink

    Thanks Stephen! I got problems with the original plugin and then found your site when I was searching for a solution. Great additions and it seems like the original author has put the plugin on ice…

  3. Emlyn
    Posted June 27, 2011 at 6:05 am | Permalink

    Hmm….I’m a little puzzled, but it may just be my unfamiliarity with custom post types & taxonomies.

    I love how this plugin lets you manage these. But after watching the video, I noticed that the actors, directors and genre taxonomies appeared in “meta boxes”. When I had previously created a couple of taxonomies (manually) they simply appeared as selectable checkboxes in a single box, available to any new post of that custom post type. Does this visual change have something to do with one of the other properties–hierarchical?

    But I guess most importantly: I’ve been having a terrifically difficult time understanding how to modify the (apparently) default permalink structure. Currently my permalink is %/postname/% but any custom post type link I click invariably comes up with ?post_type=blahblah&p=1234. None of the rewrite => stuff has worked (in fact, the examples on the forum seem weirdly different from the Codex ones).

    I’m using a custom PHP menu structure (for nav display as well as bread crumb stuff) and this is the only thing that I’ve not yet managed to solve.

    Does the Custom Post Type UI plugin allow for easy/easier permalink control?


    • Posted June 27, 2011 at 8:02 am | Permalink

      Which video are you referring to?

      As far as the taxonomies appearing in separate meta boxes, this is the normal and expected behavior. Furthermore, it doesn’t matter if the taxonomy is specified as hierarchical or non-hierarchical (although this will change how things display inside each meta box). I think your manually-coded taxonomies may have been defined improperly.

      Regarding your difficulties with permalinks, I can sympathize; permalinks can become a nasty bitch when you start coding a site with any complexity. Custom Post Type UI will help manage the permalinks IF you download my modified version. The original doesn’t allow defining the “rewrite front” parameter, even though it is extremely useful and clearly documented in the codex.

      Hope this helps,

      • Emlyn
        Posted June 27, 2011 at 8:45 am | Permalink

        Thanks Steve–that’s handy.

        The video I watched was here. (After reading your reply I’m realizing that yours is a modification to an original plugin…correct?)

        I guess I have one basic follow-up question: If I’ve already set up a couple of custom post types and associated taxonomies, will these show up in this UI plugin after install? ie: Does it create its own “proprietary” CPT’s/tax’s? Probably a dumb question but I’m being careful to ask lots of dumb questions so I don’t break anything…

        Thanks again.

        • Posted June 28, 2011 at 3:34 pm | Permalink


          Yes, my version is a modification of the original.

          Your questions are not dumb at all; I’d have the same concerns.

          It’s been awhile since I tinkered with WordPress’s custom post type code, so I’m hesitant to give a definitive answer here. That being said, I’m pretty confident your existing custom post types and taxonomies will not be affected. They might not show up in Custom Post Type UIs interface, but they won’t be deleted or anything.

          I’m curious about this, so I think I’ll run a quick test to see how the plugin interacts with manually-defined custom post types. I’ll post my findings.

        • Posted June 28, 2011 at 3:55 pm | Permalink


          You’ll be fine. The plugin won’t overwrite existing custom post types or taxonomies.

          I just ran a quick test and both manually-defined and plugin-defined can coexist peacefully. You can see a screenshot here: http://stephennomura.com/pub/skitch/custom_post_types_ui-20110628-165327.jpg

  4. Niall O'Brien
    Posted November 3, 2011 at 9:09 am | Permalink

    Just wanna say thanks Stephen, nice work. Permalinks in WordPress can be a nightmare, especially when dealing with custom post types and custom taxonomies.

    • Posted November 3, 2011 at 9:18 am | Permalink

      No problem! Glad people are finding it useful.

      Yeah, “nightmare” is an understatement. ::sigh::

      • Niall O'Brien
        Posted November 14, 2011 at 6:35 am | Permalink

        Some questions if you don’t mind?
        I have a custom post type, “Projects” and a custom taxonomy called “Status” with the terms “Active” and “Inactive”. I can hit /projects/status/active/ and /projects/status/inactive/ after I create taxonomy-status-active.php and taxonomy-status-inactive.php and I get the expected results as each template queries the respective term (active or inactive). However, what if I have a custom taxonomy called “Years”? I know I could create for example, taxonomy-years.php, but what if I have a lot of projects per page, and want to pull back all projects for the year 2001, surely I can’t create a custom template for each year? Could I just get the year from the URL and pass that as the query var to WP_query eg. /projects/years/2001/ and somehow create a “general” template for when someone queries /projects/years/2001/?

        And finally, I can hit /projects/status/active/ no problem, but /projects/status/ 404s. What do I’ve to do to get a page that automatically queries all terms within the taxonomy in the URL ie. /projects/status/

        I hope that all makes sense? Thanks in advance – greetings from Ireland! :)

  5. Luke Michael
    Posted March 8, 2012 at 2:37 pm | Permalink

    Hi Stephen…

    Can you tell me where to set the “with_front” to false..?


  6. Scott Godin
    Posted September 5, 2012 at 4:55 pm | Permalink

    Which version of his plugin did you base your original code off of? His current release is 0.7.2 as of 2012-7-11 .. were you planning to continue keeping yours in sync? Perhaps at this stage he may consider incorporating your changes if you are able to provide him a current diff ?

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>