Skip to content

Instantly share code, notes, and snippets.

@VasylKyryliuk
Created January 30, 2018 12:29
Show Gist options
  • Save VasylKyryliuk/92d6d6e3f91d9bfed7b86d0344196fdc to your computer and use it in GitHub Desktop.
Save VasylKyryliuk/92d6d6e3f91d9bfed7b86d0344196fdc to your computer and use it in GitHub Desktop.
Polylang, вивід постів тільки для конкретної мови
'lang' => pll_current_language()
$args = array(
'numberposts' => 3,
'category_name' => 'events',
'lang' => pll_current_language()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment