• Resolved David Gard

    (@duck_boy)


    Hey all,

    I have just switched my site to friendly URLs as opposed to the standard Permalinks and I’m looking for some help to customise these links.

    What I’m trying to do is make it so that certain groups of posts have one identifier, and others another. For example.

    Adding %category% to the custom structure seems to only take the first Category that a post is assigned to, so it’s not quite what I would like.

    Any pointers would be appriciated.

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What you’re asking for isn’t possible within the standard WP permalink system.

    Thread Starter David Gard

    (@duck_boy)

    Shame. Do you know of any plans for that in the future, or of any Plugins that may achieve this (or close to this)

    Thanks.

    Take a look into using custom taxonomies, they provide a URL structure of..

    example.com/taxonomy/term

    So for example, for all intents and purposes, one example could be..

    example.com/services/catering
    example.com/services/wedding-cakes

    Or another..

    example.com/movies/the-matrix
    example.com/movies/3-weddings-and-a-funderal

    This is actually how categories work, category being the taxonomy, and the category name being the term (they are taxonomies).

    More on custom taxonomies here.
    http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28

    Using a custom taxonomy means you can still use it alongside, or in conjunction with using categories or tags, or both…

    Here’s a couple of plugins to make handling custom taxonomies easier.
    http://ww.wp.xz.cn/extend/plugins/custom-taxonomies/
    http://ww.wp.xz.cn/extend/plugins/simple-taxonomies/
    There are also some additional plugins relating to taxonomies if you wish to investigate further.
    http://ww.wp.xz.cn/extend/plugins/search.php?q=taxonomy

    Short of writing your custom rewrite structure to manage the posts and pages differently, i do believe that’s as close as you will get, due to how the rewrite structure operates.

    @t31os_: Have you trued using Custom Taxonomies? Only 2.7+ support sounds like its a bit shaky. On the face of it, Simple Taxonomies looks more sound.

    Thread Starter David Gard

    (@duck_boy)

    Thanks for the input guys. I have used one custom taxonomy on the site, and although I am finding them difficult at the moment I’m sure I’ll get there in the end.

    Thanks muchly.

    I believe i’ve used both under 2.8 without a problem, though unsure if i’ve used either under 2.9 …

    In using them i think i preferred custom taxonomies if i remember correctly (might be vice versa), i remember they both had their downsides in implementation, but both offered some good insight in how to manage and use custom taxonomies, so both very interesting plugins.

    The blog post Justin did regarding custom taxonomies is i believe still a valid approach, and if memory serves both plugins pretty much use similar methods, so i can’t see why they wouldn’t work.

    Are there some changes in how taxonomies are handled between 2.8/2.9 that you’re aware of, that may be cause for concern?

    No – just the notes on the lower part of the Custom Taxonomies page sound a little worrying. 🙂

    Oh, i see… i’ve just loaded it up (it’s still in my plugins folder – current version), and indeed it doesn’t work.. at least not on 3.0 ..

    Disregard that plugin, although simple taxonomies still works just fine (tested under 3.0 alpha).

    Thread Starter David Gard

    (@duck_boy)

    I used Justins blog as a tutorial when I created the Taxonomy on my site, running 2.8.5 atm, and it was a massive help. I recommend that to anyone wanting to learn how to do these.

    http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28

    yeeloon

    (@yeeloon)

    Hey guys,

    How can I achieve a link like this for Movie category posts:
    http://popcritics.com/movies/the-junction-boys

    And this for Article category posts:
    http://popcritics.com/2007/12/03/tom-hanks-film-charlie-wilsons-war-to-be-released-early

    I can’t seem to find an answer on Justin’s site on the custom taxonomy tuts. Anybody know how to do this?

    Thanks,
    yeeloon

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Manipulating Custom Permalink Structure’ is closed to new replies.