2011-11-06, 01:24:09
Connie Wrote:I want to arrange something like this:
if this is not level 0 (top leveL) => write this text else => write another text
so I must find out if the page is level 0 or not (I do not want to create a separate template for level 0 pages and I do not want to use the explicite page slugs ;=)
Code:
<?php if (count(get_i18n_breadcrumbs(return_page_slug())) == 1) echo "Level 0"; else echo "Level 1+"; ?>