rastamad
Member
Posted 6 years ago #
I can't figure out how to make the excerpt/teaser option for our blog posts work. I tried putting the comment <!--more--> after the text of the post that I only want displayed on the blog in the HTML code but it didn't work out. How should I do this?
You say you put the quicktag <!--more--> in the html code- you mean in the index.php template?
It's intended to go directly in the post while you are writing.
I believe there are some plugins that will also handle the duty as well.
rastamad
Member
Posted 6 years ago #
Not the index.php template. I mean the html code of the post. But I also did the same thing in the post but got the same result. Would you know of any plugin I can use?
rastamad
Member
Posted 6 years ago #
I am using a GUI version of quicktags. It doesn't have a button for the comment tag <!--more-->. Any suggestions?
Hand code it in when you are writing your post. Some suggest it be on its own line as
blah blah blah
<!--more-->
Blah Blah...
rastamad
Member
Posted 6 years ago #
It still won't work when I am using the WYSIWYG editor in lieu of quicktags. The comment tag only works when I am using quicktags.
You can type the tag in the post is the point I was making. No need for any editors or buttons.
When you want to enter the <!--more--> tay, you need to do so when viewing the code. Don't enter it into the HTML editor when in WYSIWYG mode.
Bennett McElwee
Member
Posted 6 years ago #
There are a number of plugins that automatically create the teaser. My Evermore WordPress plugin is one; that page also lists a lot of other plugins that do similar things. If you use one of these plugins then you may never need to manually add <!--more--> to your posts.