• Hi guys,

    I have searched over the whole internet to find a solution for the following.
    Is there a way I can use the shortcode below, but ONLY show the flags and names from the current (active) language?

    <?php pll_the_languages(array(‘show_flags’=>1,’show_names’=>1)); ?>

    So something like:
    <?php pll_the_languages(array(‘lang’ => get_locale(), show_flags’=>1,’show_names’=>1)); ?>

    If there is an other PHP way to do this, that’s also fine!
    I just need the flag and name from the current language.

    Thanks a lot!

    Danny

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode to list ONLY current language’ is closed to new replies.