• Resolved matiou34

    (@matiou34)


    Hello,
    For some reason, I am looking for a way to display things in a global query and not in my selected language.
    The reason is if (for example) I want to display somewhere my author’s posts (or number of post from this author), it’s only showing me the author’s posts in the selected language. That’s fine for my homepage etc but not for this. Can I get controle on this ?

    PS: I know I can change the settings to “show the untranslated post” but I want to keep “hide untranslated post” because I still want to show posts from the selected language.

    https://ww.wp.xz.cn/plugins/qtranslate-x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Clause

    (@johnclause)

    I would try

    remove_filter('wp_list_pages_excludes', 'qtranxf_excludePages');

    before running your query. Put it back after the run, if needed:

    add_filter('wp_list_pages_excludes', 'qtranxf_excludePages');

    In the result, you may find some posts already cached and translated. You will then find untranslated original post_content in the $post->ml_post_content (‘ml’ stands for ‘multilingual’). Look at the code of function qtranxf_translate_post to get more details, if needed.

    If you still need help on this, please describe further details of what you are doing at The Forum, because of this.

    Thread Starter matiou34

    (@matiou34)

    Thank you for your reply, this is not working, I mean it doesn’t display all post, it is still the same.
    I already ask a request on the forum (saw it after posting here)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cancel "language" selection’ is closed to new replies.