Wordpress order categories -



Wordpress order categories -

i have wordpress site lot of categories peoples names. slug becomes john-smith fred-wilkinson etc default. category list in alphabetical order first name. them list lastly name.

i authors/editors alter slug wilkinson-fred etc rather have solution don't have alter default slug.

i know there plug-ins can drag , drop order want. 1 time again relies on author/editor putting in right place.

my slugs john-smith fred-wilkinson alan-t-jones etc

i have other categories don't want alter. want reorder parent category "artist".

any ideas? if set wilkinson-fred in description field can sort on that?

thanks

i assume want alter order of wp list categories function output (maybe create little clearer in future questions!). if that's so, think have 2 options here:

1) hijack orderby parameter mentioned in this answer @chris_o @ wordpress stackexchange:

there unused column, term_order, in wp_term_relationships table can utilize assign custom order terms within taxonomy. order set @ 0 default , take custom query order , solution set order.

although @kaiser mentions in comments answer, sollution little hacky it's not meant used way , implemantation may alter in future releases of wordpress.

2) store output of function in varible (echo => false under $args), manipulate output , print resulting array. way take makes more in command of situation.

wordpress categories

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -