Excerpts are short texts or summaries

learn more… | top users | synonyms

0
votes
0answers
11 views

Make excerpts get its data from the post content

I'm using a plugin to publish my posts and pages to social media automatically. The plugin uses the excerpt as a description for each post/page. So I want the excerpt to get the first 140 characters ...
-1
votes
0answers
15 views

Can Some one help me out i wan the testimonial to appear without the excerpts

Here the short code trigger $output .= ''; $output .= ''; $output .= my_string_limit_words($excerpt,$excerpt_count); ...
0
votes
0answers
38 views

get_the_excerpt adding unwanted links to output html

I can hardly believe this is happening, but I have if ($text == "") { $text = get_the_excerpt(); // $text = "this will be the text"; } When I call echo $text subsequently with the simple ...
0
votes
1answer
32 views

Shortcodes in RSS excerpts

I am developing a plugin that uses shortcodes. I wanted to enable users to use shortcodes in excerpts, so I added the line add_filter('the_excerpt', 'do_shortcode'); which worked fine.However, in ...
0
votes
2answers
48 views

Certain number of posts with certain excerpt length

Could use some help... using this code to call up a custom number of posts from a certain categorey and only want to display the first 15 characters. However, it is showing the same excerpt on each ...
0
votes
1answer
21 views

How to get only manual excerpts?

I have a plugin I'm modifying in which I need to return the manual excerpt if it exists, and if not, nothing. How would I go about that? Here's my code so far: $excerpts = sprintf( ...
0
votes
0answers
31 views

Excerpt functions is removing the forward slash on the url

Excerpt functions is removing the forward slash on the url - I am completely lost here I can't find a way to make it work. I am very new on php programming any help would be very appreciated. I am ...
0
votes
0answers
16 views

A simple way to unfilter the closing h2 Tag in the excerpt

normaly the Wordpress Excerpt is beeing filtered. For some auto correction inside a Plugin i would need to know where the h2 tag ends, and finally to set a dot on its place with a preg replace. I ...
0
votes
0answers
40 views

Remove html content from Auto-Generated Excerpt

I've a website that syndicates content, and each article gets prepended with html content similar to "From Source A:" Wordpress obviously strips the html from that content when auto generating the ...
0
votes
2answers
28 views

Problem with site's search results “Read More” link?

I'm hoping someone will be able to help me with this issue. I noticed today that when I search certain serch terms in my Wordpress site's search box the link is messed up (shown in the image below ...
0
votes
1answer
25 views

Excerpt preview

Is there a possibility to preview a manually created excerpt? I would like to add a picture or a link to my post's excerpt, but I don't want to test my manual excerpt on my live wordpress. Any ...
0
votes
2answers
26 views

Can I use both a custom excerpt and a trimmed excerpt?

For each post, I use the custom excerpt field to write a custom excerpt (180 characters max) for each of my posts, which I use as the meta description of my post for SEO. When I show a list of my ...
0
votes
1answer
44 views

How to get the excerpt for is_home() outside of the loop isn't working

I'm wanting to get my excerpts outside the loop and I learned how for everything but the blog page. After researching this topic I was able to produce two Q&As: Get excerpt using ...
1
vote
2answers
45 views

Different excerpt styles per category, but chronological

I want to have different sized previews for different kinds of work I've done. Say 100x100px for regular stuff, but 200x200px for a bigger project. I figure I can use category to sort, and I know how ...
0
votes
5answers
100 views

How to show only manual / custom excerpts?

I know how to add the more-link in the post editor to show the excerpt of post instead of the full post. In this method excerpts created automatically. If I want to manually enter the excerpt I have ...
1
vote
2answers
37 views

Append Text to $post->post_excerpt

I'm trying to add some text after a product description in WooCommerce which uses the $post->post_excerpt. Currently I'm using the following code: add_action( ...
-1
votes
1answer
27 views

Get the excerpt of post_content

Hi guys can you explain me how to get a excerpt length of 15 for the post_content in my code: <?php $args = array( 'numberposts' => '2', 'tax_query' => array( array( ...
0
votes
2answers
48 views

the_excerpt() doesn't return the Excerpt field content

The problem I'm having is that the_excerpt() isn't returning the content from the post's "Excerpt" field. Instead, it's returning the first 55 words of the post, as though the "Excerpt" field is ...
-2
votes
1answer
27 views

Return excerpt on Search

Wondering how to return only excerpts on a search. function get_the_excerpt( $deprecated = '' ) { if ( !empty( $deprecated ) ) _deprecated_argument( __FUNCTION__, '2.3' ); $post = ...
0
votes
1answer
41 views

Adding html banner to posts

I'm writing a plugin that adds a banner to the top of all blog posts. I'm using the_content filter and just pre-pending some html to it. When doing this, the html isn't shown in the excerpt, but I ...
0
votes
2answers
54 views

How to read out the excerpt length (for if-condition)

I'm trying to do is the following. If the excerpt length is shorter than 30 charakters, than do.. <?php if ( get_the_excerpt() <= 30 AND has_post_thumbnail() ) : ?> ...
0
votes
2answers
102 views

Excerpts are not displayed by a shortcode on category pages

A 3rd party plugin that I use adds a shortcode that displays a list of adverts (CPT posts). The shortcode function includes (with an include statement) a template - the list.php file, that displays a ...
0
votes
0answers
51 views

How to add a new line to an excerpt?

I am trying all day to add a new line to excerpts that I am using with my blog but I have not managed to do it yet! I am using Canvas theme and Visual Composer. I am trying to add manually these ...
1
vote
1answer
100 views

Excerpt_length nor the_excerpt not working correctly

What I'm using- WAMP, clean install of WordPress 4.3.1(No plugins) and starter theme - Underscore. What I'm trying to achieve- I want to have blog post, that shows only the excerpt, so I've modified ...
3
votes
1answer
371 views

Read more tag shows up on EVERY post

I recently read this awesome post and I need help figuring out how to display the 'Read More' link only on posts with more content to display. As it is, currently, it's displaying on every post, even ...
0
votes
0answers
33 views

I can get the permalink or the excerpt to work correctly, but not both

I'm calling the following code from within a filter hook. (I'm using the_ rather than get_the for bugsquashing clarity.) function test_function($output, $format, $link, $post, $adjacent) { ...
0
votes
2answers
71 views

Modify WP_Post before processing

I am looking for a way to modify WP_Post object before it's processed and displayed on the page. Reason - I built my site when WP was still in version 2.0, or even earlier. I didn't attend to it for ...
0
votes
2answers
37 views

How to remove first three words from content and display the excerpt

Hi I am making a video game site. I can display the excerpt, shortened it as well after following some advice. What I can't do is remove the first three words from the content and then display it as ...
1
vote
1answer
55 views

Customise Excerpt start and end

I am attempting to customise a search result page to display a title and excerpt that contains the search query. I am using the "Search everything" plugin for this, and I find that sometimes on a ...
1
vote
0answers
12 views

Add text excerpt and pictures to hyperlinks?

Is there a way to automatically add text excerpts and perhaps also pictures when one adds a hyperlink into ones post? A bit like when you e.g. share hyperlinks on LinkedIn? Thanks for any suggestions ...
0
votes
1answer
117 views

How to properly show the Excerpt only if it exists?

I have the following two functions in my theme: function content($limit) { global $post; $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { ...
0
votes
1answer
38 views

Pull in excerpt with shortcode

I am working with a plugin that provides a shortcode with only a couple of parameters. I'm using [list-shows] shortcode. I would like to also pull in an excerpt of the content. I was able to add in ...
0
votes
1answer
197 views

Remove links from the_content when using filters wp_trim_excerpt

I'm using wp_trim_excerpt which is working perfectly but I want to strip the links contained in the the_excerpt (using get_the_content), I've looked online and tried many solutions to get the thing to ...
1
vote
1answer
42 views

Why is my excerpts not showing if not explicitly declared?

It's my understanding that the_excerpt() will display the excerpt, if you have made an explicit one, or the first few paragraphs of the actual content, if you did not. In my case however, it only ...
0
votes
1answer
284 views

<?php the_content(); ?> to get a little more content after 'read more' inside loop

I want the to give a little more content after <!--more--> tag inside Loop. I saw this on wordpress codex This script gives the content before the <!--more--> tag: <?php global ...
0
votes
0answers
17 views

Trimming of post content leading to some open tags that are distorting the page formatting

I am trying to show post excerpt in my page. However, as the excerpts have not been defined by the writer, i am pulling the post content, and then trimming it to certain characters to form excerpts. ...
1
vote
2answers
135 views

Excerpt - add the last few words of posts to the […]

Is there an easy method of adding the last few words of the posts, added to the trimmed excerpt that is automatically generated for post displayed on category pages? Currently it will only show the ...
0
votes
1answer
39 views

Limiting the number of characters in the except

I am trying to post a news blog section on my home page, but I want to limit the text to 100 characters. I am using this code in the functions.php file but it is not working. I want to limit the ...
0
votes
1answer
130 views

Excerpt “Read More” link

In my blog I want to put a label "Read More" and after clicking it, I want all my posts to appear but it's not working. Here is my code to try to be more specific: ...
1
vote
3answers
70 views

“Read more” link doesn't show up when the post length is under the excerpt length

I have posts with very different post lengths. Sometimes there are very long posts, sometimes a very short comment on a book. I have set my excerpt length to 50 words, but when a post is 25 words ...
0
votes
0answers
123 views

Convert meta description into corresponding excerpts / yoast seo plugin

I m using Yoast SEO plugin on my blog. I never filled excerpts manually, but filled the meta description for each posts. But now for some reasons i need to use get_the_excerpt hook and I have never ...
0
votes
0answers
38 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
0answers
30 views

Post Images and embeded media at the bottom of each Excerpt

Does anyone know how I can get all the images for each post (all single images / gallery images) and embedded content (youtube embeds, twitter embeds etc) for each post to display below the excerpt ...
0
votes
1answer
29 views

Force authors to use Manual Excerpt in Wordpress and multiple Manual Excerpts

I'm stuck with this thing. I have a multiple author website and I would like to force them to use the Manual Excerpt before they publish. Also, I want to display different custom fields for multiple ...
0
votes
1answer
71 views

Text with special class as excerpt (or exclude special class)

I am new in Wordpress and I am trying to customize my own theme. All my posts are starting with a kind of content that I don't want to become the excerpt. It is kind of header. Is there a way to ...
1
vote
1answer
65 views

Excerpt unwanted text “<!— value: -->”

After I updated my WordPress to 4.2.2 I minified my code : <?php while( $teamGroup->have_posts()) : $teamGroup->the_post(); ?> if (get_the_excerpt()) { ?> <?php echo ...
0
votes
2answers
200 views

Define excerpt length by inserting read more tag

I have a blog where the excerpt length is set to 55 words and after that it automatically inserts the read more link. What I want to do is to manually determine the excerpt length by inserting a read ...
1
vote
1answer
146 views

How to get the excerpts of all children pages

I'm currently trying to get this working: I want to display a list of excerpts of all children pages within my parent site. According to the WP Codex this ist possible through 'get_pages' function ...
0
votes
1answer
88 views

getExcerpt: Make ellipsis appear only if character limit is reached

I have a function called getExcerpt that displays the first 140 characters of an excerpt and after that, an ellipsis appears. The call in my template is like this: <?php echo get_excerpt(140); ...
0
votes
1answer
106 views

Private Post BUT Public excerpt on Homepage

I'm building a website for a french school. My problem : part of the website content will be private. Me and some other specified users will publish private posts (posts that only the 600 ...