Récupérer les données dans un multi-sites
[pastacode lang= »php » manual= »global+%24switched%3B%0D%0Aswitch_to_blog%281%29%3B%0D%0A%24args+%3D+array%28%0D%0A%5C%27numberposts%5C%27%09%3D%3E+-1%2C%0D%0A%5C%27post_type%5C%27%3D%3E+%5C%27organisme%5C%27%2C%0D%0A%5C%27orderby%5C%27+%3D%3E+%5C%27rand%5C%27+%29%3B%0D%0Aquery_posts%28%24args%29%3B%0D%0Aif%28have_posts%28%29%29%3A+%24i+%3D+0%3B+while+%28have_posts%28%29%29+%3A+the_post%28%29%3B+ » message= » » highlight= » » provider= »manual »/]