Excerpts are short texts or summaries

learn more… | top users | synonyms

0
votes
0answers
7 views

How to remove programmatically added content from excerpt?

I am using the Bottom of every post plugin located here to add static content to the end of every post. The plugin is working brilliantly, except the content is being added to the excerpt also. ...
0
votes
1answer
275 views

Remove 'read more' link when post is shorter than excerpt

How can I remove the 'read more' link from a post excerpt on a blog/archive page when there is nothing more to read...when the length of the post is shorter than the excerpt?
-2
votes
1answer
634 views

Modify Twenty Fourteen Home Page Content Limit & Add Read More Link

I've install the new Twenty Fourteen theme for WordPress. I don't know how add summary text of posts on my front page. All old tutorials like this does not work with new theme. Any suggestions on ...
3
votes
2answers
24 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
2answers
520 views

Create custom links for excerpts with php dynamically

Good Day I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this: ...
0
votes
1answer
28 views

Creating excerpt with simple “Read more” link

I've read dozens of articles on how to create an excerpt but nothing has worked so far. For testing reasons I use the "Twenty Thirteen" theme, although I developed a child template. In the index.php ...
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
1answer
20 views

Excert ( the_excerpt(); ) Not working properly

I am creating custom theme, I have included excerpt in the index file <article class="post"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ...
0
votes
1answer
41 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
2answers
35 views

Excerpt length: get 2 paragraphs

I have successfully implemented a solution from WPSE that trims the except to the first paragraph, but I'd like to change that to trim after the second paragraph instead. There's a link floating ...
0
votes
1answer
379 views

Manual excerpt length on recent posts slider

I need to change the character/word limit of manual excerpts which will be displayed on recent posts slider. I think it's 55 characters right now without counting spaces and punctuation marks. Am i ...
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 ...
0
votes
4answers
189 views

Displaying post excerpt using wpdb query

I'm using a modified version of the code from a question (Get WordPress Posts Grouped by Month) to group my posts by year. Everything is working fine, but I'm having trouble getting the post excerpt ...
2
votes
3answers
331 views

Move excerpt meta box to above content editor

I found a WordPress hook called "edit_form_after_title" to add a text box after the title. How can I use this hook to display the excerpt after the title while creating a new post?
6
votes
1answer
8k views

Allow HTML in excerpt

Here is my excerpt code. // Generate custom excerpt length function wpbx_excerpt_length($length) { return 300; } add_filter('excerpt_length', 'wpbx_excerpt_length'); How do I allow html like ...
1
vote
1answer
476 views

Allowing the SoundCloud player to appear in a post excerpt

I am setting up a website for my music, in conjunction with my SoundCloud account. I plan to post the links to my soundcloud player as blog posts, but I can't figure out how to make the blog excerpts ...
0
votes
0answers
21 views

Protected Excerpt Text

On this page of the WordPress Codex it says: Protected Excerpt Text The default Excerpt of a password-protected post is: "There is no excerpt because this is a protected post." This code ...
0
votes
0answers
32 views

Excerpt content

I want to display the title with content in result in search engine using excerpt. I see an answer for excerpt, See this, but I'm confuse where do I place this code... in function or ...
0
votes
1answer
39 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 ...
0
votes
1answer
29 views

How can I show post excerpts on the tags page?

I want to see excerpts on my tags page (e.g., http://domain.com/wp/?tag=psychotherapy), rather than the full length post. How do I do this? I see the following in the tags.php page for my theme: ...
0
votes
1answer
31 views

Check if excerpt is empty at loop-portfolio

I want to check if excerpt is not empty, then echo the excerpt link, if not the echo permalink, like this: if(the_excerpt()!='') echo the_excerpt(); else echo get_permalink() but how can I check if ...
0
votes
0answers
33 views

is_page_template() doesn't work with excerpt_length filter

I am tring to set a different excerpt lenght for the pages that use an specific page templates using excerpt_length filter. This is the code: add_filter( 'excerpt_length', 'nmd_excerpt_length', 999 ...
6
votes
6answers
19k views

Get excerpt using get_the_excerpt outside a loop

I have a code that call get_the_title() and it works, but get_the_excerpt() return empty. How can i make it work? This code is inside a plugin called "WP Facebook Open Graph protocol". Here's the ...
0
votes
1answer
70 views

run shortcode in excerpt of single custom post type

Hi because of the way my theme is set up, I need to run a shortcode inside the excerpt of a custom post type (services). This is the code I have so far... function ...
1
vote
3answers
3k views

Display Links in Excerpts?

I'm having a problem with the_excerpt and can not find the answer anywhere... I simply want to allow links to be clickable when they are displayed via the_excerpt! There has to be a function for ...
0
votes
1answer
32 views

Problem with viewing single page correctly. (taken half way down the page on click through)

I have a strange situation occurring with a website that I am currently developing. On the main articles page at http://wptest.lancscps.co.uk/articles/ when the user clicks on the continue reading ...
0
votes
0answers
28 views

Keep shortcode in shortpost contents excerpt

I'm really confused , when I use some default theme like twentyfourteen, shortcodes show well in shortpost, but when I use theme that someone design for me , in shortpost I get shortcodes as text !! ...
0
votes
2answers
77 views

Remove more or […] text from short post

I use a theme that have a character limit for shortpost and show [...] at the end of character limit. I want to remove this, so I search for the_excerpt(); and replace with the_content(); The ...
0
votes
1answer
43 views

shortcode issue in the_excerpt

I had this custom shortcode working but it seems to have stopped. I had the code running through another shortcode that ran the loop for category posts. I have since improved the code so that it works ...
0
votes
2answers
63 views

Empty excerpt using wp_get_recent_posts

I have this simple shortcode to display the last posts with it's title and except: add_shortcode('latest3', function(){ $recent_posts = wp_get_recent_posts( array( ...
0
votes
1answer
44 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: ...
3
votes
4answers
4k views

Modify 'Read more' link adding a new class

I want to add a class to the 'Read more' link. Actually I have this: <?php the_content( 'Read more...' ); ?> Which outputs: <a href="...?p=14#more-14" class="more-link">Read ...
0
votes
1answer
87 views

get video from content

I have a post with YouTube video in it. The content is inside $content. Currently I am doing the_content() and this displays full content on my page. The page contains the list of all videos. The ...
0
votes
3answers
283 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; ...
1
vote
3answers
690 views

Read more does not show up when I write my own Excerpt

On my blog on all my main loops I have it set to show the excerpt instead of the content If I make a longer post and leave the excerpt text box empty, then wordpress will make it's own excerpt from ...
-2
votes
1answer
45 views

Export Posts in excel [closed]

How can i export post only with this data in excel :- Post title - Post URL - Author - publish Date Thanx
0
votes
1answer
37 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
258 views

wp_trim_words is trimming by character instead of by words

I'm using Wordpress 3.9.2, and having trouble with the wp_trim_words function. It seems to be cutting the string down to X characters instead of X words. Example Put the following in a template ...
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
1answer
34 views

Adding Read More to Custom excerpts

I've added the following code to my functions.php: function new_excerpt_more($more) { global $post; return '<strong><a class="moretag" href="'. get_permalink($post->ID) . ...
0
votes
1answer
73 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
28 views

Return only content in excerpt field in loop

I am sure this has been asked before, but I can't seem to find the answer, although it seems simple enough. I have built a custom theme based on another person's design. He uses both the excerpt and ...
0
votes
0answers
18 views

2 posts same excerpt?

I'm facing the following problem: I'm outputting 2 posts with different titles, dates, permalinks but the excerpt are both the same. <?php $query = new WP_Query( array( 'post_type' ...
0
votes
2answers
138 views

How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?

I am pretty new in WordPress theme development and I have the following doubt about how show posts into a page. I have this page belonging to an old custom legacy blog that I am build again using ...
3
votes
5answers
7k views

How to control manual excerpt length?

I have a website in which I need to control the displayed excerpt length. Some of the posts might have manual excerpt so I can't use the excerpt_length filter. I can, of course, use some kind of ...
0
votes
1answer
175 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
39 views

Archive Page Isn't Showing Article Excerpts

I'm using the _tk theme (bootstrap + _s) and in the reading form I've set the Posts page to a static page because I'm using a static front page. I've also set it to show a summary for each article. ...
1
vote
2answers
441 views

get_the_excerpt() not returning anything when post has no excerpt

When trying to call get_the_excerpt() the page does not return anything on posts that have no excerpt. I thought WordPress usually 'fake' it and create one using the first x characters from ...
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 ...
0
votes
1answer
41 views

image class removed in excerpt

I have inline images in my post content that have classes. the classes are available as I go to single page like this: <img src="the_cource.jpg" class="myclass"> , but are removed as I look ...