Display Excerpt in single.php and link to Full Post
-
Hello,
I’d like to ask about excerpts. Pardon my english and hope my simple detailed explanation would help. π
I sincerely appreciate any help contributed even if it may not solve this problem.
Is it possible to display an Excerpt on single.php where (e.g. “Read the Full Article”) would show on single.php
When someone clicks on “Read the Full Article”, it’ll then take the user to the FULL post(…/title/#more-2).
Could this be done?
Design Structure
I would share my design structure.Categories Page would display ALL the titles (without any description) of the post. (this way, i can display lots of posts on the category page, w/o having to scroll)
e.g.
Hello1
Hello2
Hello3As someone clicks on Hello1,
It’ll take them to single.php where the excerpt would be shown.
e.g.
<title>Hello1
<excerpt>Today is hello1. Hello! Welcome to Hello1.
<Read The Full Article..> (link to full article)
User can then take a look at the short excerpt to decide whether or not to click on “Read the Full Article”.
Current Accomplishment:
Able to display excerpt on single.php but the Linking of “Read the Full Article” to <…title/#more-2> does not work.
The screen did not even refresh when i click on the link. It should give me the full summary right?
Personal Suggestions:
Are there codes to check if the “Read The Full Article” button is clicked? and if it’s click, we display the full content?
e.g.
<?php if (#more) {
the_content();
} else {
the_excerpt();
} ?>Appreciation
Thank you so much for reading this problem and if my explanation sucked, I would be glad to re-explain. Thanks for your time.Thank You.
Regards,
freezay
- The topic ‘Display Excerpt in single.php and link to Full Post’ is closed to new replies.