excerpt in characters

I have code in functions.php: function string_limit_words($string, $word_limit) { $words = explode(‘ ‘, $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(‘ ‘, $words); } but i need to limit excerpt in number of characters, could you help me with that? 4 s 4 I used this code in one of my last projects: … Read more

Display Links in Excerpts?

I’m having a problem with the_excerpt and can not find the answer anywhere… I simply want to allow links to be clickable when they are displayed via the_excerpt! There has to be a function for this, rather than relying on a plugin. But I can’t find it and the advanced excerpt plugins are so complex … Read more

Remove “Continue Reading” Link From the Teaser Excerpt Only

I want to remove the “Continue Reading” link from the teaser excerpt only and not from the automatic excerpt, which filter is easily available. This is the original code; it’s from the Showcase Template Page Template: <?php while ( have_posts() ) : the_post(); ?> <?php if ( ” != get_the_content() ) get_template_part( ‘content’, ‘intro’ ); … Read more

How to force excerpts / teasers in the loop

When I’m in “the loop” (archive pages etc.) how do I force teasers / excerpts for all articles, regardless of whether they contain the <!–more–> tag or not? Details: I’m starting off of the _s template which displays blog post content using the content.php template in which it calls the_content() function. This function inspects the … Read more

the_excerpt and shortcodes

I’m using the_excerpt on my index page. I’m also using a dropcap shortcode at the beginning of each of my posts. On the index page, the posts will not display the letter with the dropcap shortcode around it. If my post beings with the word “Dog” the index page displays “og”. How do I get … Read more