I would recommend having two static Pages for this arrangement:
- The static page to serve as the Placeholder for your site front page
- The static page to hold the content you want to display as an excerpt on the front page
Then, in front-page.php
, you simply query static page 2 above, and output post-excerpt
and a permalink. Once the permalink is clicked, the content from static page 2 is then rendered as per normal, via page.php
.
(If this is a distributed Theme, then you’ll want to add a Theme option or other means by which to select the Page ID to query in front-page.php
; otherwise, you can just make the ID static, hard-coded in the template file.)
Related Posts:
- Is it possible to manipulate the list of page templates?
- How does WordPress decide what template to use as frontpage
- How to Handle CSS for Multiple Header header.php Files?
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- WordPress Theme Development: How to redirect templates the right way?
- Override template file i subfolders
- Single page site with history.js
- How to link to the page displayed by home.php?
- which template should I use for single category post?
- Different templates for each category level
- What is the point of using archive.php instead of index.php?
- What’s the difference between home.php and index.php?
- Custom single template for a specific category
- How to store widget fields data as an array?
- How to insert a logo in the header?
- How To Add New Option Types To Option Tree?
- How to move page templates to custom folder?
- Page template in two level deep folder
- Create “File-less” Page Template in Functions.php
- Modular theme settings
- Different wordpress 404 template for different post type [duplicate]
- get_option function
- How can I get wp_head() as a string instead of echoing it?
- Get category slug and display it on a query_post
- Why does my short code get executed before other content?
- Override Current Theme Setting in wp_config.php
- Retrieve the template directory URI via global or get_template_directory_uri() every time?
- How can I see what template parts are being called for rendering the viewable page?
- Why might $input (Settings API) be coming through empty?
- Add a preview to a WordPress Control Panel
- Add a #hash to the links in my custom menu
- Multiple Custom_Background, is it possible?
- Problems with Layout inherit in theme.json
- LOST in WP Template Hireachy
- How to load different CSS in different Header?
- two tinyMCE editors in the same page
- Template Hierarchy for get_header()
- Returning Variables back into a template
- Can not Remove Archives and Meta from Sidebar
- How to override BuddyPress 3.0 bp-nouveau theme files?
- is_archive() content being shown instead of is_category()
- Setting hero/splash section as a blog post
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- How can a Theme Contain no Header File or Footer File?
- Cannot update WordPress General Settings Site Title and Tagline
- How do I update WooCommerce template files in my theme? [closed]
- How to upload images using Settings API
- New template, where to place CSS?
- Understanding the WordPress template hierarchy
- Check if password protected post is visible
- get_query_var() and permalinks
- What is the best way to handle multiple calls to get_template_directory_uri() and similar functions?
- Toggle Sidebar Display
- Add theme templates for child categories into the template hierarchy
- Move theme templates to subfolder without losing page associations
- Where can I access my custom page template?
- Theme development question regarding layouts
- Why are theme templates organized as multiple point of entry PHP files instead of reusing your theme’s index.php?
- Theme settings keep getting reset/erased
- Disable front-page.php template
- How do I create a custom partial / template?
- Change the template of multiple multisite pages at the same time
- Simple way to get two language WP site
- Load child template based on parent
- Where should I update_options in a theme?
- How can I display/hide certain content based on a Theme Option field?
- create-guten-block in wordpress theme?
- Inheritance of parent theme plugin files in a child theme
- Single Page theme [closed]
- Do i need to keep all the default WP templates files in a theme?
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- how to display search term in the template full site editor
- How can I make my options in an array and store theme in WP options one DB row?
- Sort wp_query by sum of two meta fields
- How to override p2 breathe theme plugin in content template file?
- Move default page templates to sub directory
- What can I use for small text when converting to WordPress?
- WordPress Filtering Custom Post Type by Metadata and Search Heirachy
- How to Call pages from a Options Panel
- Efficiency of wp_options vs a new table
- Where to place template files?
- How can I conditionally show different home page templates based on whether or not the user is logged in?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Load sidebar template just once to prevent multiple animations
- how to force tag page layout to use same as search layout?
- How to set wp_options in functions.php for removeing the Default Front Page
- Replace single_template filter with what for default posts?
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Template for landing pages
- Override plugin option by with a custom theme
- Unique design inside a specific category’s url
- How to seperate static phrases from template files in custom theme?
- Taxonomy-$taxonomy-$term not working
- Broken theme, template is missing
- How to add menù section to my WordPress template?
- Post and page content not displaying in search results
- Why still output /wp-content/themes/twentynineteen?
- not getting API setting saved confirmation message after update on option page