The excerpt tag display all the excerpt content and does not cut of?
-
Hello everyone,
I’m having some weird trouble with my excerpt in both posts and pages.
I’ve installed a plugin which gives me excerpt in my pages, so I have it both in my posts and pages. I can display the excerpt for both pages and posts but it does not “cut” it off, in other words, it displays the entire excerpt. And in some places (for example my front page) it should only display like 100 or 150 characters and then give a “read more” link.I’ve tried some different approaches to get it to work, some tips and tricks I’ve found while searching for the problem my nothing works. Right now, I’ve gone back to basic and just use the
the_excerpt()
for my posts and$page->post_excerpt
for my pages.If I make a var_dump of either my posts or pages I see the excerpt alright and it is also displayed, so I have a hard time figuring out what the problem is. When reading about it, it seems to be fairly easy to do a max-length for the excerpt but no matter what I’ve tried so far work.
If you need any information, e.g. how I loop the pages / posts please let me know and I’ll provide it otherwise all comments or advices on this would be very much appreciated.
Sincerely
– Mestika
- The topic ‘The excerpt tag display all the excerpt content and does not cut of?’ is closed to new replies.