[wp-hackers] Ordering categories in permalinks

William Davis will.davis at gmail.com
Fri Nov 5 23:14:33 UTC 2010


We're actually not starting the permalink with the category (the full  
structure is /2010/10/25/politics/lepages-cleared-in-florida-tax- 
case/). I saw this post a long time ago and kept that in mind.

With the date in there, is it still considered harmful? My boss was  
pretty adamant about getting the category in there (it's a feature of  
the old CMS that we use quite a bit).

William P. Davis
will.davis at gmail.com
207.660.5342
http://twitter.com/williampd
http://www.wpdavis.com



On Nov 5, 2010, at 6:44 PM, wp-hackers-request at lists.automattic.com  
wrote:

> Read: <http://ottopress.com/2010/category-in-permalinks-considered-harmful/ 
> >
>
> On Fri, Nov 5, 2010 at 10:31 PM, William Davis  
> <will.davis at gmail.com> wrote:
>> We're currently using categories in permalinks, but we'd like a way  
>> to order
>> which categories appear, instead of the default WordPress handling  
>> which is
>> based on ID number.
>>
>> So, for example, right now the 'news' category is ID 1, and the  
>> 'politics'
>> category is ID 5. However, if there's a story that's categorized  
>> both news
>> and politics we'd rather the have the permalink contain right / 
>> politics/
>> than /news/. In addition, if politics were to be a subcategory we'd  
>> rather
>> it was /politics/ instead of /news/politics/.
>>
>> I've taken a look at
>> http://codex.wordpress.org/Function_Reference/WP_Rewrite and but  
>> haven't had
>> a ton of success.
>>
>> Thanks!
>>
>> William P. Davis
>> will.davis at gmail.com
>> 207.660.5342
>> http://twitter.com/williampd
>> http://www.wpdavis.com
>



More information about the wp-hackers mailing list