I actually solved this… here’s what you need to do if anyone needs to do something similar:
SO, you can’t really query a site, but you can query pages on sites… so what I did was make a new page on the site where everything looked good, embed the shortcode, query that page and the content only on the other site. You NEED to have the site switch to that one to retrieve it though on the other multisite. You can look that up in the wp admin under “sites” to see the site ids.
Example:
<?php switch_to_blog(2); ?>
//changes to the site you want to query
<? $the_query = new WP_Query( 'page_id=229' );
while ( $the_query->have_posts() ) :
$the_query->the_post();
the_content();
endwhile;
wp_reset_postdata();
?>
Related Posts:
- Redirect to another page using contact form 7? [closed]
- PHP Deprecated: Non-static method should not be called statically
- Adding Custom Fields for Img in Posts
- How To Ignore a Filter On Applying Filter the Content In a Function
- Calling function from within functions.php returns unwanted value
- shortcode doesn’t work
- Can’t get custom posts of taxonomy to show
- Shortcode to generate and save password in a file
- get shortcode value
- Storing Options in a Shortcode
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- WordPress on AWS with ELB
- How to put JQuery/Ajax inside shortcode?
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- WordPress function not being called from jQuery method
- Nested shortcode functions accessing variable
- Some code in shortcode function being ignored
- Subdomains with almost the same content
- How to Create a shortcode to this php function
- What is @Action in WordPress?
- Why shortcode always displayed after footer not in body
- Custom shortcode for displaying user based on a role parameter
- Return multiple values in a shortcode attribute
- Is there a way to convert shortcodes to html content?
- Shortcode not working – quotes seems strange
- Get all the URLs of the pages that uses a specific shortcode
- Add the_post_thumbnail_url to a shortcode in function.php
- Echo out element to another page.
- Adding a Tag Parameter / Filter to My Shortcode
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- How to get current cart values using WC_Shortcodes?
- get_post_meta shortcode returns empty field
- How do I use a plugin’s shortcode attribute value in another function?
- Why does my custom plugin only function correctly once per page?
- Hide content for specific users with id
- Why is my shortcode not working?
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- Posting code inside the post instead of in the template file using shortcode
- How to Set Limit with WordPress Get Bookmarks Shortcode
- Pulling sub-site content into specific pages
- Creating Features List in WordPress Post
- Integrate Razorpay quick payments plugin with contact form7 plugin
- cURL External API request displays content above other content on page
- Subtract Using GravityWP Count Plugin
- How to get URL param for pagination in shortcode?
- qTranslate‑X is not translating all shortcodes
- How can I import a class privately into a plugin?
- How to get the main blog’s id and db prefix from a mu plugin?
- Loading class files via autoload method
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Exclude plugins on Main site on Multisite installation?
- Make id column as AUTO INCREMENT on plugin activation
- WordPress Multisite user activation hook from email
- Notepad sticky plugin
- WooCommerce Custom Product to checkout
- How to simultaneously access the same MySQL database in the main column and sidebar of WordPress?
- Adding a new field to the address field type in gravity forms
- accessing wp.media api from a tinymce plugin
- Visual Composer shortcode for child theme dir
- Can i add custom code in Source, Header from function.php?
- Problem with isset and $_POST
- How to add/change (woocommerce) product tab icon
- Get post content from outside the loop with plugin shortcode usability
- Dynamic Image Replacement through call rail phone call tracking plugins in wordpress
- How can I show registration form inside modal?
- Create Short code dynamically
- Get variable value based on string constant
- add_action for publish_post doesn’t work
- Custom Logo Link WordPress
- How to convert Currency from USD to other IP Based currency in Php function
- WordPress load same script two times
- admin_notices show after load completed
- WordPress + python integration
- Newbie problem with adding include wp_footer
- is there a way to display product gallery images via cdn
- How to call function in WordPress on button click?
- How to implement data residency in my WordPress site
- How can I see $post object in frontend from functions.php?
- Move plugin pages from dashboard to front-end
- save short-code in my custom plugin settings problem missed something
- Get post content inside plugin class method
- Python in WordPress – A “Hello World” implementation
- Restrict role to use a plugin
- Any way to force a specific plugin to use single site tables in multisite installation?
- Meta box or shortcode help
- Creating new option (add_option) from AJAX – Settings API
- How do plugin updates work?
- Is there going to an issue running different features of WP site in different subdomains?
- How do I convince this button to do something when it is clicked?
- Doing action based on input from options menu
- WordPress User Frontend Editing Custom Fields
- My wordpress site wont load, it gives header error warnings
- Duplicating wordpress install issue
- Shortcode returning specific content of a post
- How to change all the urls of the WordPress site?
- How do I remove the filter from the orders and add custom status in Dokan?
- Parse error : syntax error, unexpected ‘)’ in