Title: Formatting template function returns&#8230;
Last modified: August 19, 2016

---

# Formatting template function returns…

 *  [nicluciano](https://wordpress.org/support/users/nicluciano/)
 * (@nicluciano)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/formatting-template-function-returns/)
 * For instance, wp_get_archives(‘type=monthly’); returns your archives in the format
   of li->a. But wp_list_categories(); returns the categories as li’s inside of 
   a ul inside of an li. I’d prefer it to just return the categories in the same
   format as wp_get_archives()…
 * Thanks!
    Nic

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/formatting-template-function-returns/#post-884573)
 * [http://codex.wordpress.org/Template_Tags/wp_list_categories](http://codex.wordpress.org/Template_Tags/wp_list_categories)
 * did you look at this?
 *  Thread Starter [nicluciano](https://wordpress.org/support/users/nicluciano/)
 * (@nicluciano)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/formatting-template-function-returns/#post-884574)
 * Yes but, correct me if I’m wrong, it only explains how to use option parameters
   in the function. Nothing about how to format what it returns. To specify… I’m
   trying to format the return structure, not format the query. Also, this question
   encompasses all of the template tags, not just this one in particular, I used
   it as an example. I think that they should naturally all return things in the
   same format but they don’t.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/formatting-template-function-returns/#post-884575)
 * yah you look to be right, I misread some stuff on the bottom of the page.
 *  Thread Starter [nicluciano](https://wordpress.org/support/users/nicluciano/)
 * (@nicluciano)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/formatting-template-function-returns/#post-884843)
 * Anyone? Is there anywhere else I could ask this question where I’d get an answer?
   Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Formatting template function returns…’ is closed to new replies.

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [nicluciano](https://wordpress.org/support/users/nicluciano/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/formatting-template-function-returns/#post-884843)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
