You can load content from other pages via the get_pages function:
<?php
$args = array(
'sort_column' => 'menu_order',
'include' => array( 5, 6, 7 ) // your page IDs
);
$my_pages = get_pages( $args );
foreach( $my_pages as $page ){
setup_postdata( $page );
the_title();
the_post_thumbnail();
the_excerpt();
the_permalink();
}
wp_reset_postdata();
?>
Related Posts:
- Menu items description? Custom Walker for wp_nav_menu()
- Sizing screenshot.png without losing aspect ratio
- How Do I Protect My Premium WordPress App Theme from Copying?
- What is $post_id? is it a global variable in WordPress?
- “Quick Edit” > update clears out my custom meta values
- Get entered value of customiser field for live preview
- Call dynamic_sidebar but include/exclude named widgets?
- Add default Backgrounds
- Page template in two level deep folder
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Worthwhile to restrict direct access of theme files?
- Why max-width:97.5% on content images?
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- How to remove header images from all pages except the home page? skeleton theme
- Replace Home with image link inside custom header menu
- Why use while over if in single wordpress posts?
- wp_enqueue_script being ignored in custom theme
- First completely customized theme, where should I start?
- How to change the customizer´s sidebar width?
- Single Theme folder for Multiple WordPress
- Theme Options page not showing up in admin menu
- Cutomize Colors utility: How to add more configurable colors to a theme
- Force index.php have_posts() loop to exit if no sticky posts found
- WordPress post arrangement using post_class
- Removing non native customizer settings from a child theme
- How to prepare the HTML for WordPress [closed]
- Alias to theme folder for local development
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- Can’t work out why widget contents disappear from admin
- Single page site with history.js
- How to create a multiple choice radio group for a single theme option
- Not able to select width of blocks inside of cover block
- Edit footer via customizer
- gutenberg add classes to list items
- wordpress post category shows double`
- How do i make a custom section’s setting display the default value in Customizer?
- In this snippet how do I force the function to use gravatar rated G and fill in the alt for get_avatar()?
- $this->get_field_id() not working in customizer
- Responsive Images – crop don’t seem to work
- Migrated WordPress site renders Chinese
- How to modify default controls in WordPress theme customizer
- Why am I getting a white screen without a slash at the end of the address?
- Wireframe tool for WordPress theme [closed]
- WooCommerce: multiple input field for multiple product variations
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Where WordPress Stores The Custom Fields Values
- How to use custom function in posts and pages templates
- How to unset a set query variable?
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Having issue with WordPress wp_enqueue_style
- search.php file not pointing where it should
- How do I get standard posts to open up in their own template when using get_template_part()?
- Overrride buddypress theme function [closed]
- Custom Post Type Query issue
- WP_editor doesnt apply wpautop on single line content
- Starting point for custom Themes [closed]
- How to order by multiple date meta_values?
- Do i need escaping get_the_passsword_form function?
- How to safely return the HTML?
- How do I modify the ‘more’ link in a feed
- Create something that can be added or removed in Customizer
- I need to develop a one-page design
- index.php file in wp-content/themes/ folder
- WordPress dashboard
- Implementing HTML/CSS menu in WordPress theme
- How to format the first line of a post differently?
- How to custom category template based on category?
- add_action for admin_init hook with a parameter
- Changing background color depending on parent page?
- custom post type query causing errors
- Any way to change/add to the theme name dynamically?
- Is it possible for the enqueue styles function to mess up my CSS?
- how can i remove js file from my footer in wordpress
- WordPress Admin bar missing from custom theme
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- Alter shop page lay-out in OceanWP theme
- wordpress custom category post shortcode
- the_content() is getting null in Preview Debug
- Different WP Rest API custom endpoints across different themes
- How to set different localization file for different users?
- WordPress link to another page in site does not render a
- How to add an import widgets functionality to wordpress themes without a plugin
- Problem with Displaying Custom Theme Page’s Content
- how to add jquery to wordpress
- Change site title color on individual pages
- Git ignore everything except custom theme directory
- HTML to → WP Conversion
- Need help with adding custom menu content
- Adding a Class to an Getting From Post Content
- child comments not displaying as nested
- How get the 10 most viewed pages (not post)
- WordPress widgets manager option for emulating theme layout
- have_posts() return false on single post
- Im using a right approach to use this class inside WordPress theme?
- Bestway to write php functions
- Is using display: none the proper way to hide elements in a theme?
- How to change order of elements using a child theme
- custom theme’s search not working
- Correct way to make a custom block theme responsive
- My theme is full of error messages in the “Customize” screen, but nowhere else