• Hello,
    thank you for this great Plugin.

    I am a developer, and i have to query posts on the wordpress admin or cronjob.

    From you documentation:
    https://polylang.pro/doc/developpers-how-to/

    I have seen that the ‘lang’ parameter o my custom query only works on the frontend,
    because of the filter ‘pre_get_posts’ in the class “PLL_Frontend_Auto_Translate”.

    
    $posts = get_posts( array(
        'post_type' => 'post',
        'lang' => 'fr', // use language slug in the query
        'showposts' => 5,
    ) );
    

    Is it possible to make it works also on the WordPress admin area?

    Thank you and best regards
    Markus

The topic ‘Query content in a different language on wordpress admin area’ is closed to new replies.