Treehouse: Grow your CSS skills. Land your dream job.


  • # July 31, 2010 at 7:18 pm

    In wordpress how do I get a permalink structure like this:


    for example:


    # July 31, 2010 at 10:00 pm


    ok, so this code does the trick:
    ‘rewrite’ => array(‘slug’=>’/teams/%teams%/games’),

    however I get a 404 when I try to access the post. I know it works because I saw the permalink change in the Edit Post page to how I wanted it.

    I already tried re-saving my Permalinks settings in the wordpress admin and I also made sure my .htaccess file is writeable. Both didn’t resolve the issue.

    Any ideas

    # July 31, 2010 at 10:22 pm


    Ok I figured that one out.

    My taxonomy rewrite needed to be set to true.

    Now I cant use my page that I have created that corresponds with each taxonomy category. It is using a template that displays each post type in that taxonomy category. Now it goes to the Archives and displays all the custom post types in one loop. This displays my posts in a random order rather than having each post type separate like I have in my template.

    So how can I change it to say this

    if ( is taxonomy category 1 ) { }
    if ( is taxonomy category 2 ) { }
    if ( is taxonomy category 3 ) { }


    # August 1, 2010 at 4:43 pm

    If you haven’t figured this out yet, WordPress Conditionals are the way to go…

    # August 1, 2010 at 7:57 pm

    great! is_tax() did the trick. thanks!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.