Insert text via theme inside the_excerpt()
-
Confused? Let me explain. When a post is over 600 words, I have a little bit of php that inserts the contents of the_excerpt() before the_content() is displayed. Long post, present readers with a summary, so they can decide if they want to read the whole thing.
Works great.
I wish to call this section “Long Post Summary” or somesuch, and format it so that it looks like this:
Long Post Summary: This post is about bunnies, and their cuteness and whatnot. Very long, I’m sorry, but this summary should help.
I want the “Long Post Summary” in the theme, so I don’t have to remember to enter it in each post, but the_excerpt() surrounds itself with p tags, so anything in the theme before it is outside of that, and the actual excerpt starts a new paragraph… it looks like this:
Long Post Summary:
This post is about bunnies, and their cuteness and whatnot. Very long, I’m sorry, but this summary should help.
I want to insert the bolded text inside the paragraph of the_excerpt(), from the theme.
Can I?
How?
Thanks,
Danny.
- The topic ‘Insert text via theme inside the_excerpt()’ is closed to new replies.