2019-02-20, 19:33:50
(2019-02-20, 09:43:03)SalamandersPL Wrote: Your code gave me this:
https://www.salamanders-studio.com/temp/result2.png
Well, it would be great to have that option to sort it same as displayed in CMS.
And what is "menuOrder" for?
Do you have install i18N plugin? If you have, create a new component (Theme->Edit Components) with this code:
Component name -> custom-nav
PHP Code:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->title); ?>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
PHP Code:
<?php if (return_page_slug()=='term-conditions') { ?>
<ul class="tree">
<?php get_i18n_navigation('term-conditions',1,100,I18N_SHOW_NORMAL, 'custom-nav'); ?>
</ul>
<?php } ?>