Try using get_posts instead of get_pages
$pages = get_posts( array(
'order' => 'ASC',
'orderby' => 'ID',
'post_type' => 'page',
'post_status' => 'publish',
) );
Related Posts:
- How can I trust switch_to_blog()?
- Sharing Dynamic Sidebars across Multisite Blogs
- latest 5 posts using switch_to_blog loop
- Switch_to_blog() outside 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?
- Upload images from one site to another in Multisite
- What is the way to share data between sites in a multisite
- get post id by $content (so by post content)
- Register submenu on network menu from the subsite
- Include Site 1 Posts in Query for Sub Sites
- Sort posts according to date
- Multisite switch to blog
- Best Practise: Linking to WPMU sites from other sites
- Trouble with SQL SELECT inside switch_to_blog()
- Display posts from one network site on another
- Get variable from previous blog while using switch_to_blog
- switch_to_blog($blog_id); still writing to main blog
- fatal Error undefined function switch_to_blog()
- Do “switch_to_blog()” and “restore_current_blog()” re-run the filters?
- Access from template info of another blog (in the same network)
- Get the excerpt by page ID from another blog in a wordpress multisite?
- Memory growth with new additions to WordPress Multisite
- network site domain mapping still applied after being removed
- Can WordPress Multisite (MU) subdirectory url/slug/permalink be changed?
- Multisite Subdomain Redirect Mask
- How to use HyperDB plugin in a existing wpmu
- Sort by site/blog column in Multisite
- Possibility of Create Site Specific CSS in a Multisite
- Add access control origin header information across multisite
- Get post by term from custom taxonomy in another blog on the network?
- How to exclude specified from all list of Multisite
- Create WordPress Multisite Instance Programmatically
- Multi Network plugin: “Network not created” [closed]
- Multisite Login problem
- Https and Http Login Issue on WordPress Multisite
- How can I use different domains on a WP multisite install?
- Multisite network admin – User’s role not showing up
- WordPress Multisite Network to replace 3 seperate WordPress installations
- Is it possible to install WordPress MU on a subdomain?
- WordPress MultiSite Won’t Work on Google AppEngine
- WordPress multisite with same content
- Redirecting to page not found mulitiste
- How to create a blogs category page with Blog-Types Plugin
- Add Network Sites are not working
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?
- Multisite and Multidomains WordPress
- mu activate / deactivate plugins in multisite network mode only
- Multisite install with subdomains on a subdomain
- Multisite loads assets from main site
- Possible to reverse proxy WP multisite to a separate server with NGINX?
- How to hold posts and accounts for moderation on WordPress Network site
- Problems with WordPress multisite directories/url structures and admin access after migration
- Enable HTTPS for AWS hosted multisite domain (with AWS purchased SSL) on already created Load Balancer?
- Is there any hook to validate google recaptcha dislayed in wp-signup page [in WordPress Multisite]
- Primary (root) blog of multisite installation forbidden (403)
- Duplicate/Clone a Multi-site But Use Same Images & Resources?
- WordPress Multisite with Wildcard Certificates not mapping correctly
- Fix nested WordPress multisite resource path?
- How do I split a single WPML site with 6 languages (English is Main) into Multisite with 5 subfolders
- WordPress Multisite with Subdomain, make the subdomain look like another domain
- Login issues on WordPress Multisite and domain mapping
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- Change header.php of a specific WordPress Multisite
- Multisite htaccess with domain rewrites
- WordPress multisite redirect on digital ocean
- wp multisite domain don’t work
- Multisite WordPress Configurtion
- How to reconnect database to existing wordpress multisite setup after changing site name
- Proper setup of multi doman site
- WordPress MU with subdomain
- How do i get custom metabox data from each multisite blog?
- Multisite login and redirect to users main blog,
- How to find the site ID on a single site and then add new post with “`multipart/form-data” enctype?
- WordPress multisite dashboard not working..!
- WordPress Domain Mapping shows new domain in place but takes me to the sub domain
- How can I have different langauges in wp-admin on a multisite installation?
- Parse shortcodes from another site in WP Multisite
- Custom pages on all multisite network, to NOT show in wp-admin at all
- Problem in viewing recent posts from network site to main site
- Send data using GET method not work correctly
- How to create Network of websites with separate database in WordPress
- In a MS install, can you allow different users to have their own themes?
- Install WordPress MU outside htdocs
- WordPress multidomains and subfolders
- Redirect authors from upload.php url to Home page in Multisite
- Images on WP Network’s subsite appear only if accessed via main site’s url
- WordPress Multisite platform for different city for single db
- Multisite: should /blog go to a 404 page?
- Not being allowed to use some terms in Add New Site in WordPress
- How to redirect root blog to a specific one in multilang WP?
- WordPress shows death white screen on multisite
- Create service similar to wordpress.com [closed]
- External rewrite rules missing in htaccess – Multisite
- Using WordPress multisite is there a way to force HTTPS on specific subsites and not others?
- WordPress Multisite Medial Library not working for .online domain
- WordPress Multisite Network – Site Administrators Can’t Access wp-admin
- WordPress Multisite Network Shared Custom Post from Main Site using single-CPT.php
- Multisite, but wp_kses_allowed_html only for one subsite?
- Cant access subdomain after multisite subdirectory install
- Unable to upload files greater than 1MB in size in Multisite network?