Anonymous User
(@anonymized-126485)
Hmm… as a test, could you please change two lines above the ‘foreach’ (should be line 338) from this:
if ( $cats ) {
to this:
if ( !empty($cats) ) {
and see whether that solves the problem?
well, it give me this error in the editor:
Parse error: syntax error, unexpected T_VARIABLE, expecting ‘(‘ in /htdocs/public/www/wp/wp-content/plugins/hierarchical-pages/hierpage.php on line 329
…
It keeps displaying the warning:
Warning: Invalid argument supplied for foreach() in /htdocs/public/www/wp/wp-content/plugins/hierarchical-pages/hierpage.php on line 346
But only when I include the IDs, if I exclude it works. But I want to show only the children of the current categories, so it will be easier to include only the ids i want…
I am experiencing the same problem. 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
This plugin is exactly what I need if I can get it working properly… Thanks for creating!