Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress: show custom post types, by category Re: WordPress: show custom post types, by category

#135898
Alen
Participant

Hey @Senff,

I’ve quickly created this for you. It’s a plugin that creates Custom Post Type of “Shoes” and has two taxonomies attached: “type” and “color”… Type can be “Indoor or Outdoor” or you may choose to change this… you can create more by adding `$taxonomies = array();` to `$taxonomies = array();`. Just copy the contents on this file and save it in your plugins folder. Hope that helps, Alen.

CODE REMOVED see bellow >> edited few mistakes…

few gotchas: you need to flush the permalinks (going to Settings >> Permalink and clicking on Permalink twice) or you [could add automatic flushing](http://codex.wordpress.org/Function_Reference/flush_rewrite_rules).

I’ve tested the code with WordPress 3.6-beta3-24306. Newest as of today.

When using menu editor to add items, make sure to click on “screen options” top right corner to display all post types, so you can select them for your menu.