Title: Error in template-functions-category.php
Last modified: August 18, 2016

---

# Error in template-functions-category.php

 *  [coastertux](https://wordpress.org/support/users/coastertux/)
 * (@coastertux)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/error-in-template-functions-categoryphp/)
 * At my site ([http://www.dorneyonline.com/wordpress/index.php](http://www.dorneyonline.com/wordpress/index.php))
   I get the following error.
    Warning: Invalid argument supplied for foreach() 
   in /home/dorney/public_html/wordpress/wp-includes/template-functions-category.
   php on line 304

Viewing 1 replies (of 1 total)

 *  Thread Starter [coastertux](https://wordpress.org/support/users/coastertux/)
 * (@coastertux)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/error-in-template-functions-categoryphp/#post-77318)
 * I found the anwser….it is because I have no posts!

Viewing 1 replies (of 1 total)

The topic ‘Error in template-functions-category.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [coastertux](https://wordpress.org/support/users/coastertux/)
 * Last activity: [21 years, 10 months ago](https://wordpress.org/support/topic/error-in-template-functions-categoryphp/#post-77318)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
