Forums

WPML and diamond multisite plugin merge two queries to one (2 posts)

  1. dan77
    Member
    Posted 1 year ago #

    Hi I'm having a slight problem to combine the multiple langugage plugin WPML within a multisite environment, if I want to show recent blog-posts from the network.
    I use diamond-multisite-plugin and it works great.
    It shows all posts of the network, but I need to filter the language, otherwise I have double posts.
    If I run a normal query on the parent blog, where the multi-language plugin is running, I can switch between languages easily, thanks to WPML.
    Is there a way of combining either both queries or making diamond-plugin filter or aware of languages?
    One problem with merging the queries is my lack of skills :)
    and that I use the diamond-plugin inside php with [do shortcode].
    Any ideas or help is appreciated!
    thanks

  2. Tijhaart
    Member
    Posted 1 year ago #

    I'm having the same problem. I use switch_to_blog(), to query posts from a subdomain, but I also get the translated posts.

Topic Closed

This topic has been closed to new replies.

About this Topic