When you save a selected page in the Customiser you’re just saving the post ID of the page, which means you can just pass that value to any function that accepts a post ID as a parameter:
$mytheme_f_page[1] = get_theme_mod( 'mytheme_featured_page_1' );
echo get_the_title( $mytheme_f_page[1] );
echo get_the_excerpt( $mytheme_f_page[1] );
echo get_the_post_thumbnail( $mytheme_f_page[1] );
The first time you use any one of these the full post (page) is cached internally, so you don’t need to worry about getting them one at a time or all at once, or anything like that.
Related Posts:
- A way to automatically install pages on theme install?
- Is it possible to manipulate the list of page templates?
- Pages: frontpage.php, home.php, posts page etc
- Posts in multiple Categories different single.php
- Hide certain pages / posts on wp-admin, show custom filter
- wp_insert_post breaks rewrite rules
- the_excerpt() not showing manual excerpt for Pages
- How to highlight the current page in the nav menu?
- Do I really need the div class entry?
- Displaying part of every child page?
- How do I get the next page of posts link?
- Where can I access my custom page template?
- using jQuery Cycle by Malsup with WordPress Page and Gallery
- Excluding Pages not working
- Highest number of WordPress Custom Page Templates?
- Multiple TinyMCE Editors in one Admin Page
- Create a new page in WordPress theme
- How to create a custom page(not a template) in a theme
- how to setup custom content structures
- How to Find the Page the Front Page is Using?
- How to place HTML tags in content from the_content()?
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Template for landing pages
- Issue On Displaying Pages with Post Name Permalink
- Why in the static pages of my theme are showing these information?
- Remove specific published page when theme deactivated
- Migrating to WordPress – but how will it do “structured” data?
- How to code custom special page
- How to add custom meta box when you have a custom page template file
- How to track a users last visited page?
- WordPress Load Only Page Text
- How to add pages in wordpress using codes?
- How does the loop know which post to view?
- Pagination fuction in shortcode always displays on top
- Injecting pre-defined text from custom page template to editor
- Theme development: menu links a tabbed page with page jumps
- Custom theme template files
- Parent/Child pages
- WordPress Animation Adjustments
- Show only pages you are author of
- How do I open a post in a custom page in wordpress?
- Pages not displaying as sections on static page
- How to show metabox on page if it is using a template
- makeing a terms of use page that is part of the theme
- Creating a theme just to deploy a single page
- Problem with Displaying Custom Theme Page’s Content
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- Alter theme pages on language switch
- wp_editor some functionality not working on custom theme
- Display content on Single page
- One-Page WordPress Template
- How to create multiple pages in a client theme?
- How can I display and excerpt of all pages with a meta_key and meta_value on index.php?
- Advantages/Disadvantages Using Theme Editor Instead of Pages
- Can you create a custom page with content in the center already defined?
- how to make a new page affected by a theme’s index.php layout?
- How get the 10 most viewed pages (not post)
- How can I change the title of the Home link in the navigation bar?
- The content not wrapped in paragraph tags with get_page_by_title()
- Standard Way To Do Custom Work Within A Page?
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- Get url of thumbnail from the media uploader
- How to use logout function on custom menu link?
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Front End Post Submit Form
- Displaying wp menus by name without using theme locations
- Nesting Functions within Functions
- Best way to start becoming a wordpress developer
- Place the page title into the short code
- Redirect Old .php URLs to New WordPress Page
- create-guten-block in wordpress theme?
- WordPress navbar with logo in middle [closed]
- Which html elements should be styled in wordpress theme
- Custom form in theme template displaying internal server error upon submission
- Theme Customizer not loading JS for live preview
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Admin: sub menu doesnt display under apperance when activate my themes
- Get data from style.css file and from from users->your profile
- How to dequeue css files?
- wp_nav_menu and its fallback
- reduce duplicate code in wordpress
- Woocommerce Product attribute not imported with wordpress Importer [closed]
- iPad WordPress theme?
- Adding link post format to theme and permalink to rss feed
- How to get blog-id of an MU site from functions.php
- Does single webpage do not need navigation to create a slug in permalink?
- WordPress theme doesn’t read my translations from pt_BR.po file
- How to get full native language instead of iso?
- Move the social media icons to the left of a WordPress nav menu for Soledad child Theme
- Two instances of the theme folder in the URL
- Horizontal Navigation
- Custom image size doesn’t work
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- How to assign the default file at “Appearance > Editor”?
- Not Found when using activity stream as front page with BuddyPress
- Replacing static code in a template file with a sidebar and widgets?
- Theme’s featured image option is not showing up