WordPress.org

Forums

Bogo
[resolved] How to get the posts of languages other than the default (3 posts)

  1. mic79
    Member
    Posted 2 years ago #

    Thanks a lot for sharing this plugin, it's awesome!

    Just this question: How to get the posts of languages other than the default? I'm utilizing the following script to output posts information into a XML: http://codepad.org/AjjB6Vgd

    The problem is, this way it will only output the posts of the default language. Is there some argument I could add to the query to get posts of a specific language?

    http://wordpress.org/extend/plugins/bogo/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    Add &lang={locale_code_of_the_language}

  3. mic79
    Member
    Posted 2 years ago #

    That worked perfectly, thanks!

    example:
    query_posts('posts_per_page=-1&orderby=menu_order&order=ASC&lang=en_US');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Bogo
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic