Title: Display categories ordered by array position
Last modified: August 20, 2016

---

# Display categories ordered by array position

 *  [ellp](https://wordpress.org/support/users/ellp/)
 * (@ellp)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/display-categories-ordered-by-array-position/)
 * Hello,
 * I’m working on this website kraseybeauty.com. I need to configure the LATEST 
   NEWS block to display the categories in a especific position.
 * Here is the home page code:
 * [http://pastebin.com/fz2QvK7D](http://pastebin.com/fz2QvK7D)
 * I set the id on line 16:
 * `$front_cat_list = "10,458,12,460,55,18,102,43";`
 * There is a way to display those categories in the SAME position placed on the
   list above?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/display-categories-ordered-by-array-position/#post-3054385)
 * This [pastebin code](http://pastebin.com/3vwiDSfb) shows how to sort Posts in
   order of an array of IDs.
 * The same technique should work for you.

Viewing 1 replies (of 1 total)

The topic ‘Display categories ordered by array position’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [get_categories](https://wordpress.org/support/topic-tag/get_categories/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/display-categories-ordered-by-array-position/#post-3054385)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
