wouldn’t it have been easier to make shortcodes available?
-
I have done exactly what the function reference guide says in order to have a switcher on the header beside the hamburger toggle menu, that is I can include a language switcher anywhere in my site by using the PHP template tag pll_the_languages().
I’ve done it and it’s ok, but then the guide says1 pll_the_languages( $args );
$args is an optional array parameter. Options are:
etc.. etc..Where I find this option: ‘hide_current’=> hides the current language if set to 1 (default: 0) so I put this string on my header-navigation-top.php file:
<ul> <?php pll_the_languages( array( ‘hide_current’ => 1 ) ); ?> </ul>
but the name of the current language is still there ??
Where am I in wrong?
Thanks a lot for eventual reply.
Simone
The page I need help with: [log in to see the link]
- The topic ‘wouldn’t it have been easier to make shortcodes available?’ is closed to new replies.