How do you add Read more … link to posts?
-
16-10-2019 - |
Question
How do you add Read more ...link to a particular post or to all posts in a blog ?
Solution
Read more
links usually appear under following conditions:
- Template uses
the_content()
function for display. - Post has
<--more-->
tag in content, which createsteaser
.
Result is teaser
, followed by read more
link.
Sometimes such links are created artificially by appending them to output of the_excerpt()
function in template.
So to precisely answer your question - it depends on your template tags and how you use excerpts
and/or teasers
.
See post (by me) for writeup on excerpt/teaser differences and mechanics.
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange