Programming

Language specific post count

Do you want to count the post specific to the WPML language?

If you are using WPML and you want  to  count current language posts, you can use the following code :

Don’t Forget to add  ‘suppress_filters’ => false parameter  in your query.

If you want to display total posts count, irrespective of the languages; then  use  ‘suppress_filters’ =>true parameter in your query.

Hits: 36

Standard