2013-01-27, 02:48:48
(2013-01-27, 02:37:12)mvlcek Wrote:(2013-01-27, 01:57:44)artmaxi Wrote: Please help me! I have a code
in my sidebar, but it displays parents also.Code:<?php get_i18n_navigation(return_page_slug(),1,10,I18N_FILTER_CURRENT) ?>
There are multi level structure, like
How can I display siblings only?Code:Main » Page » Subpage » Sub-sub » Sub3
I mean when I am on the page "Sub3" I want to display it's siblings without parents.
...
UPD: Sorry, siblings and children too, but no parents
You need to set the second parameter depending on the current menu level:
Code:<?php
$bc = return_i18n_breadcrumbs(return_page_slug());
if (count($bc) > 1) {
# don't display anything if current page is on top level
get_i18n_navigation(return_page_slug(),count($bc)-1,10,I18N_FILTER_CURRENT)
}
?>
Now it displays nothing