Title: Error message when displaying &quot;include&quot; function
Last modified: August 20, 2016

---

# Error message when displaying "include" function

 *  [BrittanyLea](https://wordpress.org/support/users/brittanylea/)
 * (@brittanylea)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-when-displaying-include-function/)
 * I have a main parent category with 8 child categories… and then those 8 child
   categories have “children”. It is displaying one of the child categories correctly
   but the children of the other child categories are not showing.
 * I am also using the ‘include’ functionality and getting the following error….
 * Warning: Invalid argument supplied for foreach() in /var/www/vhosts/dev.superboat.
   com/httpdocs/wp-content/plugins/hierarchical-pages/hierpage.php on line 115
 * [http://dev.superboat.com/wp-content/uploads/2013/02/Picture-10.png](http://dev.superboat.com/wp-content/uploads/2013/02/Picture-10.png)
 * The page in question is: [http://dev.superboat.com/race-teams/superboat-unlimited/cms-3/](http://dev.superboat.com/race-teams/superboat-unlimited/cms-3/)
 * Thank you!!
 * [http://wordpress.org/extend/plugins/hierarchical-pages/](http://wordpress.org/extend/plugins/hierarchical-pages/)

The topic ‘Error message when displaying "include" function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hierarchical-pages.svg)
 * [Hierarchical Pages Widget](https://wordpress.org/plugins/hierarchical-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hierarchical-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hierarchical-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/hierarchical-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hierarchical-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hierarchical-pages/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [BrittanyLea](https://wordpress.org/support/users/brittanylea/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/error-message-when-displaying-include-function/)
 * Status: not resolved