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

0
votes
1answer
11 views

Make the title and […] clickable in result search

I have search engine in my site. But when I try to search something, like "loan", the title is not clickable and the other contents are not displaying How to display the content and the title make as ...
1
vote
2answers
36 views

Remove whitespace before the_excerpt();

I need to delete the whitespace that the_excerpt(); function returns me. I noticed it gives me whitespace before the whole text only where in the page images goes first and only after goes text. I ...
0
votes
1answer
42 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 ...
1
vote
1answer
42 views

Display oEmbed in the_excerpt

I am currently adding add_filter('the_excerpt', array($wp_embed, 'autoembed'), 9); to my functions.php file to no avail any other suggestions would be great. Also if I add $content-width to ...
0
votes
1answer
36 views

How to show an entire post content and not also the excerpt?

I am pretty new in WordPress theme development and I have the following problem showing posts. You can easily understand what I mean opening this link: ...
0
votes
2answers
135 views

Using “excerpt_more” filter for a specific post type

I have used excerpt_more filter in a theme's functions.php and in a plugin's functions.php. Here is the code for the theme function theme_excerpt_more( $more ) { return '...'; } ...
0
votes
3answers
123 views

How to get post or page excerpt using post_excerpt

I am using the following foreach loop: $pages = get_pages(array ('post_type' => 'page','sort_column' => 'menu_order',)); foreach ($pages as $page) { $apage = $page->post_name; ...
0
votes
1answer
32 views

Excerpt filter is adding '</p>' in incorrect place

I'm using the following code from this question in order to limit the excerpt length to 2 paragraphs. if ( ! function_exists( 'wpse0001_custom_wp_trim_excerpt' ) ) : function ...
0
votes
0answers
31 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
23 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
2answers
46 views

I can't seem to get excerpts showing inside get_pages and don't know why?

So, I have a foreach loop within get_pages that shows a list of child pages within a parent ID. The titles, featured image, and links come through fine, however I can't get excerpts to show up at ...
0
votes
1answer
48 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
133 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
0answers
9 views

Woothemes Canvas - Variable Excerpt Length [duplicate]

I'm working with WooThemes Canvas - and using a child theme, and I'd like two different post excerpt lengths on the home page. The Featured Post is to have a longer excerpt, and the rest on the grid ...
3
votes
4answers
236 views

Modify youtube video size on one page and show another size on different page

I have to display three videos (custom post type) on my first page. When clicking on the link, the post is displayed and video should be in default width. Can you help to find out how to change width ...
0
votes
1answer
29 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
3answers
103 views

Problem with showing featured image

I am using the code below for showing featured image in single post content.It's working fine.But when I call the_excerpt(); in any template it showing featured image with post content.I want it show ...
0
votes
1answer
73 views

Why is get_the_excerpt returning full content

I have my home page set to a static page with a custom page template. Here I want to show posts, but just the excerpts with a "Read more" link. I want to use the more tag, which is a part of wordpress ...
0
votes
1answer
149 views

Custom excerpt showing first paragraph (with HTML formatting)

Can somebody help me how to show the full first paragraph of the post, including all used tags (no stripping)? My code: function new_excerpt_more() { global $post; return '…</p><div ...
0
votes
1answer
15 views

Edit the excerpt before it is shown

I'm looking for a way the edit the excerpt before it get's show on the page. The issue is this: We import data (jobs) for a third party provider and the content is divided in sections with each a ...
0
votes
2answers
120 views

Spacing within the excerpt

I am trying to find out how I can control how an excerpt is displayed using PHP. How do I get it to render the html spacing within the post instead of just showing one big paragraph.Hope that makes ...
0
votes
1answer
70 views

The excerpt suffix won't go away

I want to show the post content until the more tag, or if there's no more tag than just first n words. Something really basic, right? Obviously I need to use get_the_excerpt function. But the problem ...
1
vote
0answers
49 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 ...
0
votes
1answer
43 views

The Excerpt gets page excerpt instead of most recent post excerpt

See www.pinosalon.com, Recent Blog is the same as Welcome. On the page-home.php template that is used as the home page I have the loop which simply displays the Welcome text. A few lines down the ...
0
votes
1answer
383 views

How to get the post excerpt using post object?

I'm trying to show post excerpt as in navigation. I'm trying this in plugin, does it make any sense? i don't know. I used $nex_obj = get_adjacent_post(false, '', true); for next post and it returns ...
0
votes
1answer
131 views

the_excerpt() does not work with has_excerpt()?

I'm trying to shorten the excerpt but it does not work. It shows the full excerpt which I write in the post edit! I've added this to the functions.php function custom_excerpt_length( $length ) { ...
0
votes
0answers
37 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
1answer
130 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
714 views

How to get excerpt of the recent posts

Right now, i am using code below to show title and its link of recent posts from my custom post category, but for one of my category i want to show excerpt, how can i achieve that. CODE i am using to ...
0
votes
0answers
149 views

WordPress Bones theme, changing default Excerpt amount of words

Been back and forth with this one and cannot find anything on the Themble site about this. I am trying to shorten the length of the_Excerpt from 55 words to 20. Have checked the codex and know what I ...
0
votes
1answer
263 views

html entities occur in the_excerpt used as meta description

This must be pretty simple, but when I use the function below in header.php to grab the post excerpt to use a meta description for a single post or page setup_postdata($post); $excerpt = ...
0
votes
1answer
102 views

Add Filter - Pass Variable (PHP < 5.3)

When using Anonymous Functions in PHP < 5.3 I get this error: Parse error: syntax error, unexpected T_FUNCTION This is especially troublesome for add_filters. For instance, if I want to make a ...
1
vote
2answers
866 views

Remove images from get_the_excerpt

I'm using a custom function to create a shortcode that displays the latest blog post on the home page of a template. But I'm trying to NOT have it display any images. I know I can use the Advanced ...
0
votes
3answers
84 views

content and excerpt not displaying

I am using get_the_title(453) and while the title displays, i am unable to display the content and the excerpt for the page with the id of 453. The following is my code get_the_title(453); ...
0
votes
1answer
116 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
2answers
1k views

How to remove “read more” link from custom post type excerpt

Is there a way I can add some kind of pre_get_posts() filter to strip out the "read more" link that appears at the end of the_excerpt() for only 1 certain custom post type that I specify? If so, can ...
0
votes
1answer
79 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
192 views

Unable to change the “Read more” text inside the_excerpt

I am unable to change the "Read more" text while using the excerpt. I've tried the following code: function new_excerpt_more( $more ) { return ' <a class="read-more" href="'. get_permalink( ...
0
votes
0answers
43 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( ...
1
vote
1answer
219 views

Limit the_excerpt in the first point (.) of the sentence

I would like to filter the function the_excerpt to stop to find the first endpoint. Ex: "This is the article summary which ends at the endpoint with a full-stop." Any idea is welcome.
0
votes
1answer
160 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
2answers
1k views

Get the excerpt by page ID from another blog in a wordpress multisite?

I am trying to get the first paragraph on a page where page ID=2 and blog ID=1. I want to display this paragraph on a page in blog id=2. I have added the following code to the template page. //gets ...
0
votes
2answers
60 views

Exclude uploaded files from appearing in the excerpt()

In a post I have some text and some media attachments and when I use the_excerpt(), it strips all the anchor tags from the attachments and shows just their file names and its causing me problems as ...
0
votes
1answer
59 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 ...
1
vote
0answers
134 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
1answer
3k views

the_excerpt() in content.php and get_template_part() in single.php

everybody. So I'm creating a blog theme and have put the_excerpt() in content.php My index.php displays different post excerpts for the different kind of posts-formats. I have content-gallery.php, ...
0
votes
1answer
262 views

Make only the image an anchor link using the advanced excerpt plugin?

I am using the advanced excerpt plugin for Wordpress http://wordpress.org/plugins/advanced-excerpt/ so I can display images and video's in my excerpts, as opposed to just text. So my code is ...
0
votes
1answer
1k views

Remove Ellipses from Excerpt

I use two custom functions for my excerpts, the first modifies the length of the excerpt and the second allows me to use the_excerpt in two ways - with a read more link and without as long as the ...
0
votes
1answer
585 views

the_excerpt Read More Filter

Currently, I call the_excerpt via traditional means: <?php the_excerpt(); ?> But I add a filter in functions.php for a custom "read more" message. // Changing excerpt more function ...
0
votes
1answer
192 views

How to achieve two different excerpt types on one WordPress site?

Working on a client site that displays a blog excerpt on the blog page (which shows 5 posts per page) and the main home page (which shows the latest 3 blog posts). The trouble is I want different ...