[wp-hackers] 404 Page on Custom Post Types and Custom Taxonomies

Joan Artés jartes at gmail.com
Wed Dec 5 20:02:03 UTC 2012


Go to Permalinks options and save options (this flushes the rules).

In the past I had the same problem with Custom Post Types and I don't
remember why :S

Joan Artés
http://joanartes.com



2012/12/5 Ryan Frankel <ryan.frankel at gmail.com>

> Thanks for taking a look Drew.  I turned off all templates except for
> index.php and still get the 404.  Is there any way you could shoot over a
> copy of your htaccess when it is working?  I've disabled any Plugins that I
> am using and checked permissions just in case there was some sort of issue
> with those.
>
> Thanks,
> Ryan
>
>
> On Wed, Dec 5, 2012 at 1:22 PM, Drew <xoodrew at gmail.com> wrote:
>
> > Ryan,
> >
> > I tested your snippet on trunk and couldn't reproduce your problem,
> though
> > I also haven't created taxonomy-*.php files for each of the taxonomies. I
> > un-commented the rewrite rules for coupon-category, deal-type and
> merchant
> > with no problem. The archives display as expected with permalinks turned
> > on. All I did to flush the rules was visit Settings > Permalinks and
> saved
> > the changes.
> >
> > Perhaps it's something in your archives.
> >
> > Drew
> >
> >
> > On Wed, Dec 5, 2012 at 10:30 AM, Ryan Frankel <ryan.frankel at gmail.com
> > >wrote:
> >
> > > Hi all,
> > >   I am having a strange issue that I am sure has a simple solution but
> is
> > > throwing me for a loop ( uh, yeah I did )...
> > >
> > >   I have created a bunch of Custom Taxonomies [ 'merchant',
> > > 'coupon-category', 'deal-type' ] and a Custom Post Type [ 'coupon' ].
> > > Everything works great until I go ahead and enable pretty-permalinks.
>  At
> > > this point I get a 404 when I try to visit any Taxonomy archive page.
>  I
> > > have set up taxonomy-merchant.php and so on but the rewrite rules don't
> > > seem to function correctly.
> > >
> > >   There are a bunch of articles online about this sort of thing but I
> > have
> > > yet to find anything concrete on this issue.  I am registering the CPT
> > and
> > > Taxonomies like this: https://gist.github.com/4217653
> > >
> > >   I have tried flushing the rewrite rules in every way possible as I am
> > > sure that would be most peoples first reaction.  If anyone could
> provide
> > > any direction or feedback it would be greatly appreciated.
> > >
> > > --
> > > ----------------------------------------
> > > Ryan S. Frankel
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> >
> > "News is something someone wants suppressed. Everything else is just
> > advertising."
> > -- Lord Northcliff <http://www.timberlinegardens.com>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> ----------------------------------------
> Ryan S. Frankel
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list