To replace the full content with the excerpt, change
<?php the_content( '<em>Continue reading →</em>' ); ?>
To
<?php the_excerpt(); ?>
To display the featured image use this:
<?php the_post_thumbnail( 'single-post-thumbnail' ); ?>
Note: Make sure you have this next snippet somewhere in your theme’s functions.php file
//add theme support for post thumbnails
add_theme_support( 'post-thumbnails' );
Related Posts:
- Auto Refresh Post List after X seconds
- The_excerpt() doesn’t parse – how to change that?
- Moved a website and excerpts don’t work for old posts
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Should we trust the post globals?
- How to end the excerpt with a sentence rather than a word?
- Get first post from wp_query
- get comments and get posts in loop
- Remove image caption from post excerpt
- Why do I need to use The Loop on pages (inside page.php etc)?
- Count singular post views automatically
- Looping through posts per category gives same posts for each category
- Display All Sticky Post Before Regular Post
- How to have different content in the loop and single
- Specific loop in Shortcode
- Repost post on specific date every year
- Search widget breaks when using multiple loops?
- Display Latest Post from all Categories
- How to show post(excerpt) from specific category on wp page?
- Frontend Post Excerpt field mapping
- custom wordpress post loop – hide iframe content
- Divide Loop Into Days & Categories
- Custom excerpt length filter doesn’t work
- While in “the loop”, detect if a post is the most recent
- Contact form 7 post loop [closed]
- How to display different number of posts
- If Specific Post, Link Elsewhere
- How to filter posts that belong to a specific category only if that is the only category
- WP Query – duplicated posts once including tags in search results
- Most recent post from another database
- wp_tag_cloud() and the_taxonomies() work but not the_tag()
- Show all posts in sidebar in single.php
- Split WordPress Latest Posts in Multiple Columns and Rows with one single loop [closed]
- Avoid duplicate post from same Taxonomy
- Alternate row and columns every X posts
- page.php showing loop of posts and not page content
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How do I restart my loop with get_next_post()?
- Child_of not displaying all children posts.. via get_posts
- Print a message if excerpt is empty after posts have been publish/update!
- Posts will not display on page-mypage.php
- Trying to use AngularJS with WordPress without any API
- Pagination with an array of post objects?
- wp_query random post
- How do I stop the loop from repeating in my category template?
- How many posts does the loop return?
- Display Posts on Custom Page
- Possible to alternate between two loops
- Get Value of Post before
- Multiple Loops Breaking Pages
- Second get_permalink inside loop points to wrong URL
- Use Click Image to Play Youtube Video in a WordPress Loop
- Extracting relevant tags associated with that particular single post only
- Why this function doesn’t works without the_post?
- Display current post position in Elementor Posts widget
- Show posts by quarter
- Some doubts about how the loop work (trying debugging it)
- If custom field is empty, use one from a previous post
- Cant’ Grab WordPress Built-in Posts Through Loop
- Get post category as a separate string and url
- Pagination for normal (standard) posts on a page with a custom loop?
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- How to show full post on home page
- ACF flexible content block not showing on live site (works locally)
- How to Remove HTML Elements from Post Excerpt?
- Related post not showing table of content
- Current post categories and subcatecories outside of the loop
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- “read more” redirects to the wrong page
- How to show post views shortcode data for each post on Posts List Page?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Count singular post views automatically
- Loop and output 4 rows of posts on home page
- How to show category image if no featured image is set?
- Get post id outside loop : Notice: Trying to get property of non-object
- Retrieve posts inside foundation tabs and tab-content split by 3 per row
- Loop through all posts showing duplicates
- Post being duplicated with foreach loop
- Custom post type – Loop out in random order but same 15 to appear first… still random
- WordPress infinite post cycle
- WordPress Request Post All Post ID in a Loop? [closed]
- List Authors For Current Category
- Post Format problem
- Display the latest post from some selected authors
- How to show the posts list into a static page? Problems to use the loop into a static page
- How to use extract shortcode in loop?
- Adding a category at even positions on main loop with modified pagination
- wordpress taxonomy results
- Displaying posts on Homepage
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- The loop: more posts than I want to fit on one page
- Using the_excerpt() some posts are truncated and some are not
- WordPress posts loop pagination – first page return 125 posts instead of 10 and the rest return 10
- The post order is different for logged-in and non-logged-in users? [closed]
- Index.php is ordering posts strangely
- How do I show the post title if an advanced custom field hasn’t been used?
- wp trim function not working
- Custom post order returning posts from other categories
- CSS code for “inserting a custom post divider” after each post
- Read more opens attachment