It doesn’t seem to be a WP Network main object for getting data from other sites in the Network i.e. $wp_network->site1->get_post_type(‘events’). I solved this using the automatically generated RSS feed for the custom post type. The feed is available on /[custom post slug]/feed
How to read the data from other WP sites
WP comes with SimplePie for easy RSS operation.
$rss = fetch_feed('http://exmaple.com/[custom post slug]/feed');
$rss_items = $rss->get_items(0, 10);
foreach ($rss_items as $item) : ?>
<h4><?php echo esc_html($item->get_title()) ?></h4>
<?php endforeach; ?>
Related Posts:
- wpdb custom post_type problem
- Save custom post type to external database
- Using custom post types WordPress network
- Does this archive template part look like its making too many calls to the db?
- How to store additional data that is related to core data
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Custom Taxonomy Invalid in REST API
- WP All Import – Using Xpath to set a select value
- Access $post object when adding custom columns to list table
- How to only show posts assigned to current user, only in certain post types
- Insert post metadata for all posts in CPT at once if metadata no existent
- Add acf field in title (admin table)
- Sorting custom post type columns with external data and without meta values
- wp_insert_term in a multisite installation
- Convert simple SQL Query to WordPress query
- How to set up multisite for multi language?
- Doubt using $wpbd->get_col for a single column
- Adding HTML tags or css classes to admin columns
- Add meta value to custom post type on publish
- convert custom query to wp_query
- using $wpdb to get custom post type with term
- Create a page that will be used to create a custom post type
- Customize my custom taxonomy table in Admin panel
- How to use custom taxonomies to reference complex relationships?
- Get parse_query filter to return slug instead of id
- Converting the_content string to an array?
- Create a clone from one WordPress site to another in a few minutes
- Custom Post Type Nav to Subpage
- Selecting a post in Dashboard
- Custom admin post.php page
- A simple script to allow sorting of custom posts in admin?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Notify admin on new submit
- Display custom fields from custom posts in RSS feed
- On update or create post redirect to current post position in list
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- Database to page routing API?
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Options page – dropdown of users
- Use WordPress MultiSite (WPMS) with a remote database for each created site
- How to change wp prefix for custom post type only?
- No Permission to add new Page, Post or CPT with Admin role
- WPMU: Cross site custom post type
- Displaying All Posts of a Custom Post Type in WordPress Multisite Backend
- Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?
- Add update or delete database records using custom post type
- How to import a custom MySQL DB table into a WordPress custom post type
- Admin Column does not populate with data
- Get terms that contain posts that in turn belong to other terms?
- Multiple pages for posts?
- Filtering posts list table
- CPT Validation to not show “Post updated.”
- How can you use one database with multisite
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- WP_Query orderby and tax_query
- Multisite: How to define and limit a Custom Post Type to specific sites?
- Flush Rewrite Rules when new site is created on network
- Importing Data from a Non-WordPress database, into WP
- How to organise this data within WordPress
- Organize WordPress site, so it can maintain with huge database
- Custom post type isn’t working
- $post not working working in AJAX plugin with custom post type
- Show data from one Custom Post Type in another Custom Post Type
- Add a ‘guide’ image to custom post type admin page
- Specifying meta field’s column type in Database using add_post_meta
- Replace dynamically content in a custom database table when a custom post is created
- Use remove_meta_box conditionally on custom post type
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Running a song lyrics site on WordPress
- Save and user submitted data from a form and display them in the wp backend
- WPDB for post count on post
- Dump custom post type database
- How to group navigation items in the admin panel
- Should I use custom taxonomies or not?
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- $wpdb->get_col and ORDER BY?
- Designing a custom post type with a minimum number of meta fields
- How to check if post/page or taxonomy post is published by admin
- Linking to Post Types from wp-admin
- Plugin or method of allowing user to rearrange custom post types with drag and drop?
- Allow front end users to add data to a custom post type
- CPT Columns doesn’t show categories
- Insert Custom Post Types
- sortable columns for multiple custom post types not working
- Custom Post Type – Support “author” only for admins
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- WordPress hook which triggers on post import
- Assigning alternate single-{cpt} template based on blog_id in multisite
- Update all published posts at once
- WordPress multisite – is it possible to have different taxonomies for each site?
- Is there SEO or related limitations to using Custom Post Types instead of WPMU?
- How to migrate Custom Field Template to a WordPress Multisite
- posttype and custom fields on multisite
- Add ‘page template’ column to dashboard for CPTs
- Entity to store contact form entries?
- Filter posts of custom post type by meta key in (List All Section)
- Ideas to connect external database table to wordpress posts as custom field source
- get_post_types not working properly in admin
- Database alteration: users who voted
- WordPress as a frontend website for iOS app [closed]