Product 1

0.00

You must register your custom post type (or taxonomy) in a function hooked to the ‘init’ action as usual.

Category:

Description

WordPress provides at least two functions for the themes or plugins authors to know the current language:

Polylang does set the language of the theme based on the main query, but it is possible to query content in a different language. For example, you can display the list of the five most recent French posts on an English page. Your custom query just needs to add the ‘lang’ parameter.

Leave a Comment