markyeoj
Member
Posted 6 months ago #
http://pinoytopics.com/livelong/2011/10/
I want to limit the word of the the_content(); without removing videos, images and the sharing buttons.
I can't do anything for that, I have wasted my whole day just to accomplish that but I failed.. I hope someone in this forum has an interest to answer. I used the Content and Excerpt Word Limit plugin but the share buttons disappeared.
There is no reliable way of limiting the_content without stripping all tags. try it with putting the <!--more--> tag where you want the post to stop. And set the the $more variable to -1, on loops where you don't want to have the "read more" link on the content: http://codex.wordpress.org/Customizing_the_Read_More#More_about_.24more
Or use manual excerpts with the_excerpt() to show the posts on the archive pages. A manual excerpt doesn't get stripped of al its tags.