Custom Category Home Page Displays Posts in All Languages

dev.xiligroup est en travaux Forums xili-language plugin Custom Category Home Page Displays Posts in All Languages

Ce sujet contient 0 réponses et 3 voix, et a été mis à jour par  xiligroup dev il y a Il y a 13 ans.

Visualisation du message 6 (1 sur 6, 6 au total)
  • Auteur
    Articles
  • #2980

    Anonyme

    Before I take time to read your code and explain the solution, I invite you to discover the very powerful plugin named xili-postinpost…

    #2981

    Anonyme

    Hello Michel,

    I installed the plugin, but my knowledge of php is not enough to make any use of the plugin so as to display the contents of a category on my main page.

    I’m willing to give it a try, but I will need some more specific guidance.

    Thanks,

    Nathan

    #2982

    Anonyme

    Looking at another post here I saw that you can change the array to include only a certain language [using: ‘lang’ => the_curlang()].

    $args = array(
    'cat' => $catid,
    'paged' => $paged,
    'order' => $order,
    'ignore_sticky_posts' => $do_not_show_stickies,
    'lang' => the_curlang()
    );

    But is there a way to include the current language as well as all « undefined » posts?

    Thanks,

    Nathan

    #2983

    Anonyme

    I tried ‘lang’ => the_curlang(), ‘*’

    But that didn’t work…

    #2991

    Anonyme

    Is there any way to have both the current language and all undefined posts show?

    Thanks,

    Nathan

    #2992

    xiligroup dev
    Keymaster

    Concerning undefined added to a target language, it is not yet possible with current WP queries on WP 3.2.1 because in XL a post without language has no taxonomy.

    Perhaps solutions in further release in following in 2 or 3 months

Visualisation du message 6 (1 sur 6, 6 au total)

Vous devez être connecté pour répondre à ce sujet.