switch_to_blog(1);
to switch to the root (primary) blog and pull post info.
restore_current_blog();
to switch back.
Related Posts:
- Removing a Parent Theme’s Menu Items
- I want to hide the parent theme in admin
- Overwrite tpl-footer.php in child [duplicate]
- Changing an html website to WordPress and missing the Parent Theme
- WordPress frameworks and parent themes [closed]
- How to override parent functions in child themes?
- Versioning @import of parent theme’s style.css
- How can I trust switch_to_blog()?
- How to *remove* a parent theme page template from a child theme?
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Override parent theme translation on child theme
- Child theme – Overriding ‘require_once’ in functions.php
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Sharing Dynamic Sidebars across Multisite Blogs
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Why is the Child Theme Stylesheet Not Loading?
- Child Theme vs Duplicate Theme Renamed
- Theme Customization API and child themes
- Difference between stylesheet_directory and template_directory
- switch_to_blog(): Load textdomain
- Declaring an instance of class included in parent theme from child theme functions.php
- How to Add Customizer Setting in Child Theme
- Get Recent Posts by Date in Multisite
- switch_to_blog() performance considerations & alternatives
- Get Parent Theme Author Name
- Get parent theme version
- Merging multiple wp_query objects
- Namespacing WordPress project according to FIG standards
- How to use parent theme’s enqueue methods
- override parent theme configuration in child functions.php
- Do all files in child theme override the parent?
- Is it possible to override this function/class in a child theme?
- Do I need to update the child theme too after updating the parent?
- latest 5 posts using switch_to_blog loop
- Override parent theme function that is not hooked or in the functions.php file
- Global Parent theme for all sites
- Use admin options from parent theme in child theme
- Strange switch_to_blog() issue
- How to dequeue / deregister parent theme style
- How to “remove” file from parent theme
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- How to remove a parent theme template from Quick Edit?
- add sidebar area to header of child theme
- Override parent theme translation on child theme
- Switch_to_blog() outside wordpress
- How to check active theme is parent or child wordpress
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Should I ask a theme developer to use locate_template rather than require_once
- How to change Parent Themes in Child Theme CSS
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- replace parent theme images in child theme
- PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex
- Using the child theme functions.php to change the customizer.php on parent theme
- How can I remove css from a child theme?
- override parent theme configuration in child functions.php
- Proper way of using functions in action hook?
- Child themes: disabling the parent
- Passing variable from child theme to parent theme
- Load parent theme files before child theme functions.php
- Updating parent themes vs. updating starter theme
- Localization: Textdomain of Child teme
- How to load parent theme style.css?
- restore_current_blog required after switch_to_blog, if I use that in a function?
- Does theme update also update a child theme zip
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- Upload images from one site to another in Multisite
- Is it a bad practice to use switch_to_blog in the frontend?
- Avoid loading css from parent theme
- Multisite – Get current post id
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- What happens to child theme if I change to new version of parent theme?
- switch_to_blog() and wp_nav_menu() not functioning properly
- Order of stylesheets in child theme
- How can I change a function in a parent theme via a child themes functions.php
- Grandchild themes and optimal network architecture
- switch_to_blog( ) content disappears after load
- Help with child theme enqueuing additional css files
- How to preserve changes in templates and other files
- What is the way to share data between sites in a multisite
- get post id by $content (so by post content)
- changing blog title to an image using filter function in child theme
- Switching to a child theme
- Using wp_enqueue_media() with switch_to_blog() issue
- How to create a parent theme for accesspress parallax theme?
- Register submenu on network menu from the subsite
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Child Theme with multiple css files
- why this media query is not working / not loading when I put it in child theme?
- Multisite wp_query & switch_to_blog issue
- the_post() within switch_to_blog() altering my excerpt
- Set parent theme language with custom .mo files
- How to load parent theme template parts in child theme
- Include Site 1 Posts in Query for Sub Sites
- add_filter to parent theme helper class function from child theme
- Removing parent theme action on pluggable function not working
- append to existing parent theme function
- Overrite parent functions using child functions
- How Do I Get My Post Tags to Alphabetize?
- How would I go about replacing this function in my child theme located in inc/template-tags.php