Excerpts are short texts or summaries

learn more… | top users | synonyms

0
votes
4answers
46 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
27 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
21 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
27 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
25 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
35 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
43 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
88 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
35 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
45 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
205 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
30 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
43 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
29 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
46 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
87 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
0answers
26 views

Pull in excerpt with shortcode

Working with a plugin that provides a shortcode with only a couple of parameters. https://wordpress.org/plugins/radio-station I'm using the [list-shows] shortcode. I would like to also pull in an ...
0
votes
1answer
111 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
38 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
224 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
110 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
37 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
99 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
58 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
96 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
33 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
29 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
45 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
62 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
133 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
106 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
60 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
81 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 ...
0
votes
1answer
63 views

Archive page if else not working for post_excerpt and post_content

I want to show the excerpt from a post only if it exists. If it does not I want to show an excerpt of the content text of the post. Here is what I came up with: <?php $my_excerpt = ...
0
votes
0answers
25 views

Get the excerpt length to return attribute

I am writing a shortcode where I would like to set a number to an attribute and then return it in the excerpt. So the shortcode [excerpt_test=10 another_option=something] gets me the excerpt length of ...
0
votes
0answers
83 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
0
votes
2answers
87 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 ...
-2
votes
1answer
84 views

Excerpt length and alignment [duplicate]

I want excerpt to be appear in paragraph, atleast 400 words and words should not be cut at end. This is my website and it should be align left. i want excerpt like single post style. And i dont want ...
0
votes
0answers
34 views

How to auto generate title if no title (empty), using excerpt

I don't know much about php or anything at really. I just moved from tumblr and I have about 800 posts with no post titles which is hurting me. I do know how to place the Excerpt in the tag to ...
0
votes
1answer
35 views

Create page excerpts for landinpage

Forgive my ignorance in wordpress, but I'm not finding the information I am looking for. What I am trying to do is (on an existing site) remove dropdowns from navigation by creating landing pages. In ...
0
votes
1answer
62 views

Get link from wpe_excerpt “read more” and move it

I apologize in advance, I'm no wordpress developer, and am having a difficult time transitioning to cms dev from organic dev, so sorry if this is a simple question or has been asked in different words ...
0
votes
1answer
103 views

Excerpt showing under title in admin columns

I am developing a site for a client, but i am facing a weird issue that is excerpt by default shows under title in admin columns. This is happening for all post types including custom post types. I ...
0
votes
1answer
64 views

How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]

As the picture says I am trying to remove the three dots that follow the end of the blue sentence (shown in the photo). I am also trying to increase the numbers of characters it can reveal. ...
0
votes
1answer
70 views

need help with '… read more' excerpt in functions.php

I have this to generate the link: <a class="view-article" href="' . get_permalink($post->ID) . '">' . __('View Article', 'html5blank') . '</a>'; But I don't want it to open the post ...
0
votes
1answer
38 views

How to Get Shortcode in Excerpt to follow Document Flow

I have the following Post - Excerpt: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sagittis augue sed orci efficitur convallis at sit amet lectus. [my-short-code] I have the ...
0
votes
1answer
170 views

Excerpt function for any content

Is there an excerpt output function in wordpress I can hook into regardless of the field used, rather than just the main content field? I have a CPT using custom fields, and rather than creating a ...
0
votes
0answers
28 views

Excerpt text not showing in meta box, causing flush on update?

I've created a custom post type that supports excerpts. On a post update of this custom post type, the content in the textarea for the "Excerpt" meta box is saved, however it isn't output into the ...