How can I get an tag to wrap each ancestor that gets outputted in this condition?
To wrap your titles in h2 just change echo $ban_titles; to echo ‘<h2>’. $ban_titles . ‘</h2>’;. If you want to limit number of titles displayed to 2 change for($i=0; $i<count($pages); $i++) to for($i=0; $i<2; $i++). Hope it helps, PHP is not so scary after all 🙂 [edit] How about that? //This is the loop that … Read more