Title: query_posts issue
Last modified: August 21, 2016

---

# query_posts issue

 *  Resolved [wgstjf](https://wordpress.org/support/users/wgstjf/)
 * (@wgstjf)
 * [13 years ago](https://wordpress.org/support/topic/query_posts-issue-5/)
 * Loving the plugin but have one minor issue.
 * On the homepage I display content from two other pages as well as the content
   from the homepage.
 * I am currently doing this…
 * $ids = array(23);
    query_posts(array(‘post__in’ => $ids,’post_type’=> ‘page’));
 * When I switch language it doesn’t switch these additional pages content to the
   other language.
 * I have tried this…
 * if ($locale==’es_ES’) {
    $ids = array(101); } else { $ids = array(23); } query_posts(
   array(‘post__in’ => $ids,’post_type’=> ‘page’));
 * Which doesn’t work..
 * and this….
 *  $ids = array(23);
    if ($locale==’es_ES’) { query_posts(array(‘post__in’ => $
   ids,’post_type’=> ‘page’,’lang’ =>’es_ES’)); }
 * Any help would be greatly appreciated.
 * Cheers,
 * Will
 * [http://wordpress.org/extend/plugins/bogo/](http://wordpress.org/extend/plugins/bogo/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [13 years ago](https://wordpress.org/support/topic/query_posts-issue-5/#post-3711480)
 * Where does the `$locale` come from? Try replace it with `get_locale()` like this:
 * `if (get_locale() == 'es_ES') {`

Viewing 1 replies (of 1 total)

The topic ‘query_posts issue’ is closed to new replies.

 * ![](https://ps.w.org/bogo/assets/icon-256x256.png?rev=1047282)
 * [Bogo](https://wordpress.org/plugins/bogo/)
 * [Support Threads](https://wordpress.org/support/plugin/bogo/)
 * [Active Topics](https://wordpress.org/support/plugin/bogo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bogo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bogo/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/query_posts-issue-5/#post-3711480)
 * Status: resolved