Displays the excerpt of the current post with the "[...]" text at the end, which is not a "read more" link. Used to directly display the excerpt, but it adds opening and closing tags to the string returned by get_the_excerpt().

learn more… | top users | synonyms

4
votes
3answers
2k views

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 ...
0
votes
2answers
3k views

Customizing get_the_excerpt() to specific length and “Read More” output.

I am costuming a template. There is a list grabbing the introduction from the first 1-2 paragraphs (all the articles from a category). If I set the excerpt to 295 words, sometimes the list grabs ...
1
vote
1answer
107 views

Give “Read More” precedence over excerpt() word count

By default, the_excerpt() displays the content before the <!--more-->, trimming it at ~50 words. Is there any way to prevent this trimming functionality when the <!--more--> is present, ...
0
votes
1answer
23 views

Filter URL and shortcodes from the_excerpt

I just noticed a weird behavior on a theme I'm working on. If I have a post with just one link or shortcode, the_excerpt will print that URL or shortcode. But if I have some text in the post, below or ...
0
votes
1answer
58 views

Limit article to 100 characters. Can't use the_excerpt…

I've been struggling with this for a long time... I want to limit article lenght to 100 characters and after 100 char. limit, add at the end '...' linked to a single post (like wordpress's ...
0
votes
1answer
72 views

Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?

I have this code to display 4 posts of type "testimonial" on the Home page: <?php $custom_posts = get_posts([ 'numberposts' => 4, 'post_type' => ...
0
votes
1answer
172 views

Custom wp_trim_words() function not trimming right

I have this custom wp_trim_words() function set to give me excerpts of only 20 words, and for the most part, it works fine. Except for some reason, on posts that contain lists, it outputs way more ...
0
votes
1answer
34 views

Show category post with excerpt text

I want to show a post with post title and post content of 400/550 words with a read more link in my category page. I have already done this, but problem is, my post doesn't display the excerpt as it ...
0
votes
1answer
142 views

How do you add a custom excerpt length in twenty eleven child theme?

I have a problem displaying custom excerpt length. I've searched for a solution on wordpress stackexchange and found this: remove_filter( 'excerpt_length', 'twentyeleven_excerpt_length' ); ...
0
votes
1answer
127 views

Add Excerpt On Quicksand Plugin

I'm using this plugin called "Quicksand" for Wordpress.. You might wanna check the link. What it does normally is it filters posts based on the category.. It shows the Featured Image Title of ...
0
votes
1answer
85 views

Display last postings of 5 categories on homepage

i have a question. I want to display on my homepage (template) the last postings of 5 categories as excerpts. Means excerpts from last article of cat.1, last article of cat.2 and so on, so i got then ...
0
votes
1answer
168 views

Can't change excerpt length and more tag

I tried to change the excerpt length and the more tag the way it is described in the codex: function custom_excerpt_length( $length ) { return 10; } add_filter( 'excerpt_length', ...
0
votes
1answer
61 views

Is there a html tag filter for the excerpt?

Maybe now, with the wordpress 3.6, there is a filter on allowing html tags on the_excerpt() I am trying to get the_excerpt() to allow certain html tags and I searched and searched and all I find is ...
0
votes
1answer
202 views

Why is the output of a call to the_excerpt different when the call seems to be identical?

Ok I've been asked to fix a problem on a website that is a bit weird. The index page (template-magazine.php) here, Has this bit of code: <?php get_template_part('loop'); ?> to produce a ...
0
votes
1answer
99 views

how to use the_excerpt for two post queries?

I am new to Genesis, i created a child theme it has two post types, one for the THEMES i want to display and other for the PORTFOLIO. both of these are having the_excerpt in their loop, I want to add ...
0
votes
1answer
399 views

Wpautop stops working after get_the_excerpt

function pre_process_shortcode($content){ global $shortcode_tags, $shortcodes; // Backup current registered shortcodes and clear them all out ...
1
vote
0answers
51 views

Best way to handle Post-Format Video without using the_content?

I have read the Codex and I'm about 3 hours searching around sites for a deep understanding of post-formats but got no answer. Don't know if it is a dumb question but after spending a long time ...
1
vote
0answers
147 views

Query Pages and post excerpts dynamically

I have a custom home page, a blog page which includes a dynamic preview area of the latest 5 blogs, and some other miscellaneous pages. Im trying to design an "events" page where the main page has a ...
0
votes
0answers
16 views

remove_filter not working as expected

I'm using the social buzz plugin. There's a line that says add_filter( 'the_content', 'sbp_5e7bb6' ); This causes the plugin code to be visible when I call get_the_excerpt so what I have done is ...
0
votes
0answers
8 views

Prevent Post Thumbnail from Loading Based on Image Width

I'm using a theme that presents excerpts on the homepage exactly how I like. The problem is that I have 100's of old posts with images that are too small for the custom image size in the excerpt loop. ...
0
votes
0answers
41 views

Strip 'p' tags in wp_trim_excerpt()

When I have a lot of paragraphs in a post and trying to display an excerpt in blockquote, all <p> tags are stripped, and whole 55 words are in one <p> tag. <blockquote cite="URL"> ...
0
votes
0answers
27 views

Search & Replace trailing strings

I need to filter the_content/the_excerpt and search & replace the following prepared array: $searchArray = array("foo", "bar", "foo bar", ...); My problem is the fact, that using php's ...
0
votes
0answers
41 views

more tag not recognized but content is truncating

Specifying truncating posts of category 'news' on homepage. Trim works but not recognizing the <!--more--> code in posts... from homepage. code in homepage ...
0
votes
0answers
45 views

get_the_excerpt on mobile still displays continue reading

I'm writing a plugin where I'm using the excerpt field as just another field. In order to get rid of the 'Continue Reading' Link, I'm removing all possible theme filters: add_action( ...