Title: Coding question
Last modified: August 18, 2016

---

# Coding question

 *  [jamesgraham2k1](https://wordpress.org/support/users/jamesgraham2k1/)
 * (@jamesgraham2k1)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/coding-question/)
 * I am having a problem on the correct way to write this function here it is `<?
   php wp_list_cats('optioncount=1&optiondates=(d/m/y)&exclude=2'); ?>` what i am
   doing is limiting what catagories show up but I want a date stamp next to my 
   showing catagories and im not sure what I am doing wrong any help is apreciated
   thx.

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

 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/coding-question/#post-265450)
 * optiondates=1
 * It’s just a flag on whether to display the date (1) or not (0). It isn’t a format
   definition.
 * From [Codex on wp_list_cats()](http://codex.wordpress.org/Template_Tags/wp_list_cats):
   
   optiondates (boolean) Sets whether to display the date of the last post in each
   category. Valid values:
 *  * 1 (True)
    * 0 (False – default)
 * -tg
 *  Thread Starter [jamesgraham2k1](https://wordpress.org/support/users/jamesgraham2k1/)
 * (@jamesgraham2k1)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/coding-question/#post-265453)
 * If you go to my site you will see what it is doing to my site the way I have 
   it written. [http://www.grahamfamilytx.net](http://www.grahamfamilytx.net) I 
   want to exclude catagory 2 and have the date and post count show on the displayed
   catagory.

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

The topic ‘Coding question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [jamesgraham2k1](https://wordpress.org/support/users/jamesgraham2k1/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/coding-question/#post-265453)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
