I advice you to study WordPress a bit more, this is standard functionality.
http://codex.wordpress.org/The_Loop
Thread Starter
GVS
(@gvs)
thanks for help
wp_list_categories(‘orderby=name&include=5,3,2,1&show_count=0&title_li=<h2>categories</h2>’);
why this function does not work properly?
this works fine.
wp_list_categories(‘orderby=name&include=5,3,2,1’);
help please
why this function does not work properly?
Probably, because you didn’t use the correct syntax. Check out th #3.3 on the page I linked above.
Thread Starter
GVS
(@gvs)
I am so stupid 🙁
I want that categories should be listed such way 5,3,2,1
first should be gategory with ID 5, second ID 3 and so on. how to do this?
Taking a second look at the default parameters… you can NOT do that. There might be a plugin out there for custom ordering – but I can’t remember, sorry.