: How to display summaries only on front page in Wordpress The question What is the prescribed way to configure Wordpress to display only article summaries on the front page (with 'Read more...'
The question
What is the prescribed way to configure Wordpress to display only article summaries on the front page (with 'Read more...' type links)?
The background
I know this seems like a trivial question, but google tells me how to hack my theme to do this, which isn't my question.
Several years ago, I created a personal blog using Wordpress 3.something and the F2 theme. I easily configured it to display only article summaries, but I don't remember how. I've since upgraded that system to WP 4.2.2 and the summaries mode continues to work.
More recently, about 2 weeks ago, I started a new blog on a new topic, by installing WP 4.2 with the Accent theme. It shows full articles on the front page. I figured the Accent theme perhaps didn't support the functionality I desire, so as a test I installed the F2 theme on my new blog as well, and was unable to determine how to switch to summaries views.
The closest configuration option I can find is under Settings -> Reading, where it says "For each article in a feed, show: Full text, Summary". It is set to Summary, but as described above, had no effect, even on a theme which I know supports this operation.
I expect I'm missing something super simple, but Google tries to give me complicated answers. What am I missing?
More posts by @BetL925
2 Comments
Sorted by latest first Latest Oldest Best
Your display depends on your theme you use. A theme using the_content() will display the full article while a theme using the_excerpt() will display the article excerpt.
It sounds like the proper way to do what you want would be to make a child theme off of your Accent theme and change the front page code from the_content() to the_excerpt().
Refer to codex.wordpress.org/Function_Reference/the_excerpt for advanced usage.
I believe the Settings -> Reading, where it says For each article in a feed, show: Full text, Summary setting actually will only affect the RSS feeds generated from Wordpress.
I believe to achieve what you desire, you have 2 options. You can either manually set an "excerpt" in the New Post screen (you might need to activate that option under the Screen Options tab).
Alternatively when writing your posts you can put a <!--more--> tag in at the point you want the "excerpt" to end. The Wordpress editor actually includes a button specifically for this tag also:
Though I believe you're theme will have to be using the_excerpt() function in whatever template you're dealing with, and not the_content().
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.