• Hey!

    Im curently working on a web project where i’m for my first time using WP 3.0.1 and the custom post type & taxonomy.

    I think i’m a quick learning, i figured out most of the things, but now i’m on a point where i realy realy can find any solution more, so if anyone can help me, it would be super nice!

    so my problem:

    i have two custom post types:

    -partys (with a non-hirarhical taxonomy “party-tags”, rewrite slug)
    -staff (with a hirarhical taxonomy “type-of-work”, rewrite slug)

    i have created a Page called “Party” where i display all the up-coming partys and in the sidebar i display via wp_tag_cloud() the “party-tags”.

    i have created a Page called “Staff” where i display all the staff and in the sidebar i display the working categories “type-of-work” via wp_list_categories()

    in the permalinks settings i have /%postname%

    and now what my site is doing:

    – when i click a tag in the tag cloud of Party, it gives me a 404 error page. the permalink is: mypage.com/partie-via-type/cocktails-party

    IMPORTANT: befor i addet all the Staff code, it has work just fine. I created a archive.php and it has worked.

    – when i click a category in the Staff sidebar, it links me to the archive (which i also don’t want… i want the normal category template) page. the permalink is: mypage.com/staff-via-category/djs

    IMPORTANT: i tried a lot of things: to change the permalink structure to %category%/%postname…. to remove the permalinks and have normal ?true=staff… to remove the staff code in the function.php, to remove the partys… and so on… but allways i get somewhare a 404 error page. Or is it, when i want to display one party, archive via tag, staff via category, one staff member… and i can find no patern, why i get some 404 error, and i can manage that the tag clud would link to archive ant the staf category list to one category section…

    i would be happy if both, tags and category would link to archive, and i would just create a universal archive page… but i can get it to work!

    any suggestions?!

Viewing 1 replies (of 1 total)
  • Thread Starter CRIStoGi

    (@cristogi)

    Ok, i found a mistake in my code… if it helps someone in the future 🙂

    i register more custom taxonmy and in every one of them i had:

    ‘query_var’ => ‘true’,

    what is wrog, it shold be:

    ‘query_var’ => true,

    /// ‘true’ is a string and WP got kinda confused cos diferent taxonomies had have the same query_var…

    now both, the tag links from my wp_tag_cloud and category from wp_list_categories link to the archive page 🙂

    well it’s a start 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Custom post typey, taxonomy, permalinks, categories, archive… always 404 error’ is closed to new replies.