Forums

Same Post Name - Diff Category: Not Working (8 posts)

  1. drivenmg
    Member
    Posted 5 months ago #

    I'm not sure but for some reason or another I can't get this to work.

    Here is an example of what i am TRYING to do:

    Tmobile
    -about
    -phones
    -plans

    Sprint
    -about
    -phones
    -plans

    but when i try to do the sprint/about - it will come up sprint/about-2

    It's a different category and the 'about' is a post name. Do I need to just create "pages" or is there a work around for this?

    Thanks!

  2. MichaelH
    moderator
    Posted 5 months ago #

    Categories, even sub-categories (category with parent), must be unique.

  3. drivenmg
    Member
    Posted 5 months ago #

    these aren't sub-categories. These are pages (post) w/in unique categories.

    domain.com/category1/about

    domain.com/category2/about

    make sense?

  4. MichaelH
    moderator
    Posted 5 months ago #

    no

  5. drivenmg
    Member
    Posted 5 months ago #

    lol i'm using unique url's for the permalinks so once again:

    domain.com/category1/about
    domain.com/category1/sales

    vs

    domain.com/category2/about
    domain.com/category2/sales

    to go a step further

    domain.com/category1/subcategory1/about
    domain.com/category1/subcategory1/sales

    vs

    domain.com/category2/subcategory2/about
    domain.com/category2/subcategory2/sales

    in BOTH "/about" and "/sales" are POST - they are "about" that particular category and UNDER that particular category.

    does that help?

  6. MichaelH
    moderator
    Posted 5 months ago #

    Okay got it.

    You may need to resort to using %post_id in your Permalinks to make each unique.

    As a note, some developers would recommend against using category based Permalinks, for performance reasons.

  7. drivenmg
    Member
    Posted 5 months ago #

    I'll try it out. THANKS!

    On the 2nd part re: developers - how does it affect performance?

    btw thanks for all your help!

  8. MichaelH
    moderator
    Posted 5 months ago #

    how does it affect performance?

    Retards performance as it has to check database for rewrite rules. See this thread on the wp-testers email list: http://comox.textdrive.com/pipermail/wp-testers/2009-January/011097.html Quoting from Ryan Boren on that thread:
    "Verbose rules are used for structures beginning with %category%,
    %tag%, %postname%, and %author%. Avoiding such structures is best.
    "

Reply

You must log in to post.

About this Topic