This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Mini post list, filter by language

  • Creator
    Topic
  • #8571
    skylance
    Member

    Hello,
    I’m using Swagger with WPML Bridge for a multilingual WP installation.
    The Mini Post List widget is fetching all the posts even I have my widget logic configured.
    Is there any way to filter the list by language?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #8575
    Jason Bobich
    Keymaster

    Hello,

    This is just a standard retrieve of posts. WPML should filter all this for you automatically, unless you’ve selected a specific category from the widget’s options? And the widget logic wouldn’t have anything to do with the widget’s posts; this just determines if the entire widget displays or not.

    #8580
    skylance
    Member

    Hi Jason,

    I have two posts in two different languages and two of them are appearing in the mini post list.
    WPML is not filtering these in this widget, however for the rest of the site there is no problem.
    I didn’t select a category, it is set to “all categories”.

    You can check my installation from:
    http://blog.hotelrunner.com

    Thanks

    #8585
    Jason Bobich
    Keymaster

    I think I figured it out. Try this —

    In the “Custom query string” option of the widget, put this:

    suppress_filters=0

    I just tried this on my end and was able to get it to work with this.

    Reference: http://wpml.org/forums/topic/get_posts-by-language/

    #8589
    skylance
    Member

    Solved with this…

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.