Excerpts are short texts or summaries

learn more… | top users | synonyms

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 ...
2
votes
3answers
797 views

excerpt in characters

I have code in functions.php: function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); ...
2
votes
2answers
5k views

limit the words in the post content and add read more link

As you can see into the code, the routine is to display the post which has an id of 266. Now all I want is to limit the words displayed in the post content of that post. Let's say, I want to limit the ...
0
votes
1answer
1k views

How to programmatically bring back “excerpts” field in post editor in WP 3.1+

My theme uses some custom options fields, like post excerpt, that were removed from the editor screen with WP 3.1 I understand and support the intent to clean up the content workspaces. However, as a ...
2
votes
1answer
320 views

Bulk add tag (or any sort of label) to posts who have custom excerpt

The situation is the following: The blog as of now has 2200+ posts. In the beginning (2007/2008) I was using manual excerpts where I would put an image and a little bit of text. The manual excerpt ...
-2
votes
1answer
612 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 ...
10
votes
7answers
33k views

GET the excerpt by ID

Why is it that one cannot get the excerpt by ID like with the title and most other elements. eg. get_the_excerpt(ID). I know how to use it with the $post->post_excerpt function but that does not ...
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 ...
3
votes
3answers
3k views

Adding a rich text editor to Excerpt

I need add to the excerpt field the TinyMCE Advanced editor, any ideas? I have the qTranslate plugin (multilanguage), and it's impossible to connect teh excerpt with this plugin and an editor. ...
1
vote
2answers
1k views

Excerpts that don't truncate words

I know I can control the length of excerpts using a filter, however it sets the length globally. In my case I have different lengths of excerpts on three different pages. This is what I have now. ...
0
votes
2answers
1k views

Stripping shortcode from custom excerpt function

I'm using the following function to create a custom excerpt for my homepage and categories pages so I can do it by character count and have a custom "read more". However, I have captions shortcode ...
13
votes
6answers
15k views

Using wp_trim_excerpt to get the_excerpt() outside the loop

I'm building a theme that is going to show excerpts on the homepage for potentially dozens of posts. I don't have manual excerpts on all of my posts, so $post->post_excerpt is empty for many posts. ...
2
votes
3answers
1k views

How do I filter the excerpt metabox description in admin?

I want to change the default "Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts." help text below the Excerpt input area to ...
1
vote
2answers
11k views

How can i limit the character length in excerpt? [duplicate]

Possible Duplicate: excerpt in characters I have a question after reading this post (http://wordpress.stackexchange.com/questions/16070/how-to-highlight-search-terms-without-plugin). I like ...
0
votes
3answers
161 views

Calling Permalinks With PHP

I'm developing a theme which supports WordPress' post formats. As a result I am using a big if statement, which can be found below. I would like to link my post titles to the posts while ...
0
votes
1answer
588 views

excerpt box not visible

i'd like to use excerpts but for some reason the excerpt editor is not visible when editing posts. i'm using wordpress v3.1 - already searched up the options but couldn't find anything .. :( do i ...
9
votes
2answers
1k views

How to end the excerpt with a sentence rather than a word?

Here is the excerpt of the post on my home page. I want to end the excerpt with a sentence. In this case it is ' opportunities. '. I know how to modify the length but it won't do what i want. Here ...
4
votes
2answers
5k views

Issue with enabling formatting in excerpts in Wordpress

This is what I added in my theme's functions.php file to enable formatting for excerpts in Wordpress (source of the tip): remove_filter('get_the_excerpt', 'wp_trim_excerpt'); ...
4
votes
4answers
14k views

Twenty Eleven home page show only excerpt

I am using the brand new twenty eleven theme, my home page is set to show latest posts, but it displays the entire posts, I want to only show the excerpts, not the entire content, Here is the ...
2
votes
2answers
332 views

Auto Refresh Post List after X seconds

i'm new in wordpress, and i really need a help here. My main site, list the resume (excrept) of all posts, with pagination. But when a user publish a new post, the only way to see it on the main page ...
2
votes
1answer
973 views

Aggregate Summaries of Posts of Different Blogs in Multisite Instance

I have a Multisite Wordpress installation with 7 different blogs. I want to show an aggregate of the summaries of posts from those 7 blogs in the main blog. Do you know a good way to do this?
1
vote
1answer
505 views

Limit the Excerpt field in WP-Admin in words

Is it possible to limit the Excerpt field on the post page in words? Note that I am aware that it's possible to echo the excerpt and limit it in words, but I want the field itself to limit the amount ...
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 ...
2
votes
1answer
1k views

Custom excerpt length on home page

I thought that I got this working but unfortunately it is not. I need my static home page to have an excerpt length of 50 and every other pages to have one of 20. Here is my code so far: function ...
1
vote
2answers
428 views

Copy SEO Meta Desc “Custom Field” to Excerpt field?

I'd really like to take all of my old posts, and automatically use the meta descriptions we have written – currently done for each post using All In One SEO Pack – and copy them to also be our post ...
0
votes
1answer
398 views

How to set default metaboxes on user creation?

Just for repetition's sake, I want to do the following: I need to set custom fields and the excerpt metaboxes for WP default Posts post type when a new user is created. I know that by default WP ...
8
votes
2answers
505 views

Compare the_excerpt() to the_content()

Is there a way to compare the_excerpt() to the_content() to know if the_excerpt() is actually showing the entire post content? for instance, if a post were particularly short. ultimately i'd like to ...
4
votes
2answers
498 views

How to get the unfiltered excerpt, without […] or auto-excerpting

The standard way of getting an excerpt is to use the_excerpt() or get_the_excerpt() template tags. I am trying to get just the actual content of the Excerpt field. If there is an excerpt, I want to ...
3
votes
2answers
694 views

Excerpt Word Count

The code below from WPSnipps provides an excerpt character counter, but I'd like to count words instead. Does anybody have an idea of how to do this? // Excerpt character count function ...
2
votes
2answers
533 views

How do I modify this page template to show subpage excerpts (not post excerpts)?

I have made a page template which shows linked subpages using this bit of code: <?php $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'menu_order', 'sort_or ...
2
votes
1answer
1k views

Add visual editor capability to custom excerpt window?

The custom excerpt field (under Add New Post) only accepts html. Thus, you can't just cut and paste a segment from the Visual Editor. If you want links to appear in custom excerpt, you have to know ...
1
vote
1answer
460 views

Mass update excerpt

I'm using a photoblog theme which upon creating a new post it takes the post attachment and saves a modified "img src" string into the excerpt field. It then uses <?php the_excerpt(); ?> to ...
1
vote
1answer
169 views

Remove box character after excerpts. Special Character Bug

I want to hide these special charecter (������) after excerpts .. e.g. "Los votos del PP han impedido este jueves que el Parlament apruebe instar al Govern a que en un plazo de mes establezca un ...
0
votes
1answer
239 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
80 views

Thumbnail + Excerpt = loss in word count

My excerpts are shown using this function <?php function get_the_content_limit_custom_allowedtags() { // Add custom tags to this string return ...
0
votes
1answer
144 views

How to add an admin function only to posts, not pages?

I'm having a problem with adding an excerpt counter to the excerpt field. It may be a conflict with another plugin, but basically it screws with other jquery if the excerpt field doesn't exist (e.g.: ...
0
votes
2answers
630 views

Replace the Post Excerpt Meta Box with a Field in My Custom Meta Box

I've got a custom meta box for a custom post type which will be the only metabox I plan to show in the main column (except the native title box). I want to move the native Expert box/field inside my ...