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
0answers
16 views

Delete/remove post excerpts?

I have post excerpts in my posts generated by some plugin. I do not use them. Is there any function which will delete them on post publish, or even better remove that feature?
0
votes
1answer
30 views

Display inner pages like posts.[Like how post excerpt works]

This question may be stupid. But, i'm just wondering if there is a possibly way to display page as excerpt like how post excerpt works. You may not be able to understand what am i trying to ask till ...
0
votes
0answers
16 views

the_content interrupts sidebar

I am using a shortcode in a sidebar which is getting the excerpt, and a plugin which is using the_content filter to edit the content. The problem is that what ever changes I make through the_content ...
0
votes
1answer
35 views

How do I override the_excerpt so that it will display full content?

I am creating a plugin. Many themes display excerpt such as when is_search() is 1. I want WordPress to display full content no matter what. How would I do so? Should I use add_filter ...
0
votes
0answers
8 views

Different excerpt length for different custom post types [duplicate]

I have two different custom post types, say, 'News' and 'Publications'. Now I want show 30 words as excerpt in News archive page, and 20 words in Publications archive page. How can I achieve that?
0
votes
1answer
19 views

Post class only applying to first excerpt; why?

I have a page with three excerpts. Only the first excerpt is being given the post class, not the second or third. I presume something is wrong in my PHP: <table width="100%" border="0" ...
0
votes
1answer
40 views

Easy way to show excerpts of specific posts on a page

Suppose I have 3 posts on my wordpress site titled: Test_post_1 with tag test_tag Test_post_2 with no tag Test_post_3 with tag test_tag Suppose now that I have one page titled page_1. On that page ...
0
votes
0answers
47 views

Excerpts and Custom Post Types

I have a declared a custom post type using the Types plugin. When using a tag to display a page of these custom post types the excerpt shown is the full content of each post with formatting ...
0
votes
1answer
26 views

My post excerpt does not work

I'm using the excerpt for post but when I click on the read more link it does not show me all post paragraph and it show me only the paragraph excerpted and this the code line index.php <?php if ( ...
0
votes
0answers
29 views

Can't change excerpt length

I'm using a custom child theme on top of a commercial parent theme. For some reason, the_excerpt() display much less than 55 words as it should (can't find any function related to the_excerpt() ...
0
votes
2answers
22 views

Manual excerpt being ignored on custom post type

I've set up some custom post types with Pods, but can't seem to get it to display my manual excerpt. It's working fine for my normal posts. I've tried displaying it with echo get_the_excerpt() and ...
0
votes
1answer
30 views

erase post excerpt limitation [×]

i have a custom site in homepage have problem of post excerpt with max 35 word, now i want eliminate this limitation, after search in varius file the limitation and after individuate i have changed ...
0
votes
1answer
62 views

Replacing the ellipsis with three dots

I'm having an issue with the ellipsis generated by the_excerpt(). I'm using a custom font which doesn't have the ellipsis character, therefore I just have a random character instead of the usual ... ...
0
votes
1answer
129 views

How to Display a Single Post Excerpt

Is it possible to show the excerpt for a known and single post (on the Home Page) while in the loop? I tried each of these and none of them work: <?php echo the_excerpt('10'); ?> <?php echo ...
0
votes
3answers
25 views

Apply wordpress filter checking category

I am trying to apply wordpress filter hook get_the_expert. My intention is to apply filter only when the category slug is "MY-CATEGORY-SLUG". How can I check the category slug inside the filter hook ...
0
votes
1answer
27 views

Remove “[ ]” from excerpt in highlight search term

I am using highlight search terms in my wordpress website. In my search result, the last character of the excerpt is as below: This is the excerpt.[...] I have the code in my functions.php which ...
1
vote
1answer
112 views

Only showing the_date and the_excerpt for first entry in get_posts

this code below shows the titles and links for 5 posts in get_posts no problem but only displays the date and excerpt for first post... any help please? <?php $args = array( 'posts_per_page' ...
0
votes
1answer
132 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 ...
4
votes
2answers
42 views

Check if the user has explicitly set an excerpt

Is there a way for me to check if the user has explicitly set an excerpt? I need to call the excerpt only if they've specified something in the excerpt field, and not an automatically shortened ...
0
votes
0answers
19 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
1answer
69 views

The excerpt doesn't add Read more

I am confused about the behaviour of the_excerpt() and get_the_excerpt(). My objective is to have a manual excerpt and display a continue reading. I went through this article, and apparently ...
0
votes
0answers
12 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
1answer
127 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
154 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
105 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
174 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
70 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
221 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
1k 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
44 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
88 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
33 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
93 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
188 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
275 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
11 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
3answers
388 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
38 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
129 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
158 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
548 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
18 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
227 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
159 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
59 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
98 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
833 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
379 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
1answer
201 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
1k 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 ...