2011-04-04, 00:08:07
Connie Wrote:I modified this to
Code:<h3><?php
if (isset($pages[$slug]['children'])) {
$bc = return_i18n_breadcrumbs(return_page_slug()); echo $bc[0]['menu']; echo ':';} ?></h3>
so there is output only when there are subpages, but now it is not showing anything...
$pages and $slug are not set. Try the following:
Code:
<?php
$bc = return_i18n_breadcrumbs(return_page_slug());
$slug = $bc[0]['url'];
$pages = return_i18n_pages();
if (isset($pages[$slug]['children'])) echo '<h3>'.$bc[0]['menu'].'</h3>';
?>
(attention: it will show the h3 even if there are only non-menu children)