Forums

taxonomy OR category in permalink (3 posts)

  1. drkknght
    Member
    Posted 8 months ago #

    site: toonbarn.com
    WP: 3.2.1

    i'm looking for a way to include my custom taxonomy name into my permalink system.

    i recently created a "cartoons" taxonomy, with all different cartoon names as part of the group: pokemon, smurfs, thundercats, etc. most of my posts have a "cartoon" that they are associated with. however, there are some that are not in a cartoon taxonomy.

    without knowing the proper nerd speak (i'm only an unproper nerd), i'd love the permalink logic to act something like this:

    if this post has a taxonmy, make the url:
    /%cartoons%/%postname%/

    else this post does NOT have a taxonomy, make the url:
    /%category%/%postname%/

    is that feasible...? and if so, what would i enter in SETTINGS > PERMALINK ?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 8 months ago #

    You'd be better off using a custom post-type for cartoons, as you can't force permalinks to show a tax in the URL just for one taxonomy.

  3. drkknght
    Member
    Posted 8 months ago #

    ahh, that's a bummer :(

    i had read in a few places online that you could hijack the permalinks to display a taxonomy (like here: http://shibashake.com/wordpress-theme/add-custom-taxonomy-tags-to-your-wordpress-permalinks) but then didn't know how that would address my "sometimes is, sometimes isn't" issue.

    however, if i only have the one cartoons taxonomy, maybe its a lost cause all around!

Reply

You must log in to post.

About this Topic