get CFS loop from other site (multisite)
-
Hello,
I’m trying to get a CFS loop from a post on another site in a Multisite install.
I paste here the last code I’ve tried, is not working.switch_to_blog(2); $page = get_posts([...]); // Returning the right post from the other site. global $post; $post = $page[0]; setup_postdata($post); global $cfs; print_r($cfs->get('grid',get_the_ID())); // Returning nothing (the ID is OK)
Is there any solution?
Thank you very much, and thank you for the plugin! I love it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get CFS loop from other site (multisite)’ is closed to new replies.