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
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Merge two custom post types into one admin page?
- Remove the “View” Link in Post Admin
- Add WordPress MU Network Admin via Database
- Custom Post Types, or completely custom?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Custom post type admin search
- Ordering posts by custom taxonomy in admin area
- find a random blogid across my multisite network that has at least one post published
- Custom Post Type, WP_Query and ‘orderby’
- How to add custom columns to Custom Post Type admin screen
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Is it OK to move admin menu items?
- Templates for Custom Post Types and Custom Taxonomies
- How to use custom database tables for custom post types?
- Filter by custom Field for Custom post type Admin Listing
- Exclude add_filter from the admin
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Custom post type Vs. data in own table
- Want to filter only parent post in admin area
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- How to add post_author column to custom post type
- Adding help information to custom post edit page
- Only Show an Author Their Custom Post Types
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Filters post in admin with dropdown select, custom post type
- How can I add a column in the wp_list_table of the admin area?
- Settings page above CPT page in admin section
- How to search CPT’s by meta query from the admin dashboard?
- Add theme options to custom post type admin pages [closed]
- Multisite with a single, shared custom post type, while retaining site URL
- Redirect Single Post CPT (Custom Post Type) to a specific URL
- Sort admin area by custom Event Date field
- WordPress post count not showing for custom post type author
- Add html to cpt main page / admin edit.php
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Adding custom tables to WordPress
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- WP All Import – Using Xpath to set a select value
- 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
- using $wpdb to get custom post type with term
- Customize my custom taxonomy table in Admin panel
- A simple script to allow sorting of custom posts in admin?
- Notify admin on new submit
- Options page – dropdown of users
- Use WordPress MultiSite (WPMS) with a remote database for each created site
- No Permission to add new Page, Post or CPT with Admin role
- Displaying All Posts of a Custom Post Type in WordPress Multisite Backend
- Add update or delete database records using custom post type
- Admin Column does not populate with data
- Multiple pages for posts?
- How can you use one database with multisite
- Flush Rewrite Rules when new site is created on network
- Importing Data from a Non-WordPress database, into WP
- Organize WordPress site, so it can maintain with huge database
- Show data from one Custom Post Type in another 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
- How to group navigation items in the admin panel
- Allow front end users to add data to a custom post type
- Assigning alternate single-{cpt} template based on blog_id in multisite
- WordPress multisite – is it possible to have different taxonomies for each site?
- How to migrate Custom Field Template to a WordPress 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)
- get_post_types not working properly in admin
- WordPress as a frontend website for iOS app [closed]
- Import External XML
- Say I have a tech blog, how best would I store technical specs for a phone, if i use custom post types
- using the loop in custom meta is messing up ‘add new’ post type
- Metaboxes inside Tab
- Filter in Custom post type to find the parent post
- Delete all custom posts then upload a new CSV of events
- Changing an item in drop down after 5 latest posts per taxonomy
- Limit Number of Custom Post Type Dashboard
- Custom Post – additional param in the custom post URL goes to error page
- In WordPress do I create tables for my plugin or do I create custom post types for a Student and Classes Registration system?
- Custom Post save causes 500 error
- Pulling Content from Existing Database
- Custom Post Type Causing Admin Sidebar UI Issue
- Displaying database table in backend of wordpress
- Multisite – Echo admins profile meta
- How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?
- Change column of row action (Quick Edit) links in WP_List_Table
- Adapting plugin for custom post type?
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Prevent users from changing post status
- Checking for published posts in a certain post type
- Custom Plugin w/ Custom Post Types – Custom Posts Are Showing at all Privilege Levels – Is this possible to adjust?
- custom post types containing a collection of items
- How to set the Screen Options for Users in the Admin Panel?
- Issue displaying multiple TinyMCE editors with WPAlchemy
- Remote database access on another wordpress site’s custom post type