Excerpts are short texts or summaries

learn more… | top users | synonyms

2
votes
2answers
487 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
2answers
4k 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 ...
4
votes
2answers
434 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 ...
0
votes
1answer
148 views

Excerpt not alway available

I have a php function that should print last three posts with title and excerpt. For the first post printed there is no excerpt. Here is the code: $posts = wp_get_recent_posts( ...
2
votes
3answers
2k views

How to display only an excerpt of the content with custom post types?

<?php /* Template Name: second */ ?> <?php get_header(); ?> <?php query_posts(array('post_type'=>'event')); ?> <?php if(have_posts()) while(have_posts()) : the_post(); ...
0
votes
2answers
396 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 ...
1
vote
0answers
93 views

Show excerpts of posts on P2 Home page

I am looking to show the latest posts on my site home page, which is using P2 theme. I want them to be shown in excerpts. I have found the following code on a site, it said its in the entry.php file. ...
1
vote
1answer
193 views

Add excerpt and post thumbnail to Buddypress blog directory page [closed]

I wonder if anyone can help me, I am trying to display excerpt and thumbnail for the posts shown in the buddypress blog directory page. By default only avatar thumb and title link to the posts are ...
3
votes
4answers
3k 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
350 views

Change behavior depending on content length

I have a large amount of posts and some only have one sentence. This means for some posts all the content can be read in an archive without needing to go to the posts single page. For these posts I ...
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
1answer
121 views

the_excerpt not showing posts

I'm using the following code to show the single most recent post on my landing page: <?php if (have_posts()) : ?> <?php if (($wp_query->post_count) > 1) : ?> <?php while ...
0
votes
1answer
80 views

simple category search form returns full text - but I need excerpts

I have member pages. I set their "membership type" as a certain category. I want to search the members now. I use this simple form that does what I need, except that I need the results to display as ...
0
votes
1answer
381 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 ...
-3
votes
3answers
849 views

Limited excerpt with readmore

I wanted limited excerpt (40 words) with readmore link...I used this code below: <?php echo apply_filters('the_excerpt',get_the_excerpt().'<a href="'.get_permalink().'"> read more ...
1
vote
0answers
171 views

Excerpt formatting for Google News Feed

We're currently bringing in a Google RSS News Feed using FeedWordPress and it works great. This issue is that Google uses a defined table structure in their RSS. The excerpt function has no problem ...
3
votes
3answers
2k 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. ...
2
votes
1answer
302 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 ...
0
votes
1answer
329 views

How to customize read more link

Situation is I have some posts which are showing in my home page there are some read more links(excerpts) after clicking on those links they go to the complete post page, now the issue is i want to ...
0
votes
1answer
1k views

Show Excerpts In Twenty Eleven Theme

I just need to create a blog I have done everything i guess, its showing posts but they are supposed to be kind of summary first and after click the whole post. I already selected the "For each ...
2
votes
1answer
1k views

can hyperlinks be displayed in excerpts?

By default, it looks like all hyperlinks are stripped out of excerpts. Perhaps this is to prevent link power from diluting. Is there a way to allow hyperlinks to display in excerpt content?
0
votes
2answers
902 views

get_posts displaying wrong permalink for “continue reading” link

I lifted the "continue reading" link functions from the Twenty Eleven theme and for the most part, it is working (works in RSS feeds). I created a shortcode to display the latest post on the front ...
0
votes
1answer
616 views

Trimming a custom field to a length

I have a custom field added through the Advanced Custom Fields Plugin. I am trying to trim the content of the field down to a set number of words. I have tried to use the excerpt filter and setting ...
0
votes
3answers
1k views

Multiple versions of RSS feed? One with full content, one with the excerpt

I'm not sure how to word my question and I have been searching all day, to no avail. I am looking for a method to create two versions of my RSS feeds, one with the full content and one with only the ...
1
vote
1answer
426 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 ...
0
votes
1answer
78 views

How can I add more code to this?

<?php $my_query = new WP_Query( "cat=11&posts_per_page=1" ); if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); ...
1
vote
1answer
2k views

How to correctly limit the content and strip HTML?

I have been using this code for a long time : $temp_arr_content = explode( " ", substr( strip_tags( get_the_content() ), 0, 720 ) ); ...
0
votes
2answers
259 views

Using the_excerpt() on a page

I've been trying to utilize the PHP excerpt function to call from her recent blog post to post on a main landing page without avail. Any thoughts? <div id="home_news" class="prefix_9 grid_3"> ...
0
votes
2answers
2k views

Automatic excerpts

How to display excerpts in the homepage instead of full post automatically, without the need to insert <!--more--> in every post ? I tried this plugin ...
8
votes
2answers
477 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 ...
2
votes
3answers
1k views

can the_excerpt function also get images?

Not sure if im going about this in the right way but, overall, ive been told to create, kind of like a news box on my home page and so, the "latest news" is going to be this clients posts. now i know ...
0
votes
2answers
201 views

Continuum Theme - Excerpt length

So I have been doing some digging and narrowed down the file that I believe is calling for the front page excerpts on all posts. No matter what I change it to, it doesn't seem to adjust. //get ...
1
vote
1answer
311 views

buddypress: how do i make the group description excerpt shorter?

I set up a theme in buddypress and i want to have a teaser section for my groups on there. It works fine but i have a problem to shorten the group description... I'm using it like this: ...
0
votes
1answer
68 views

Prevent Advanced Excerpt from Being Called

I have excerpts enabled for pages. In one of my page templates I want to prevent <?php the_excerpt(); ?> from initiating the Advanced Excerpt Function. Basically, I have one page template where ...
0
votes
3answers
631 views

Remove Text within Header tags in the Excerpt

With the default WordPress Excerpt function. WordPress strips the header tags (e.g. h1 tag) but keeps the unformatted text, that lies within the opening/closing of the h1 tag, displayed as part of the ...
0
votes
1answer
127 views

Reblog WordPress to another WordPress?

1.Is there any way to reblog only the excerpts of WordPress posts to another WordPress with the featured image(option to choose the size of the image we prefer) and link to the WordPress site to see ...
4
votes
2answers
4k 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'); ...
0
votes
2answers
543 views

Wordpress Excerpt Paragraph Limiting

I was wondering if it was possible to get the first two paragraphs and the feature image in the excerpt. I currently have the first 100 words, but would like the the first two paragraphs. What I ...
0
votes
2answers
1k views

How can I define the RSS feed content length?

I’m trying to shorten the content of my RSS feed. Right now it displays way, way too much for each entry and I’ve tried to select the “Excerpt” in the Syndications setting in my option panel but it ...
0
votes
1answer
117 views

Filtered content appears in the excerpt

I am modifying the content using the "the_content" filter. But this filtering is seen in the excerpts also. Consider the following code, function modify_content($content = ''){ return 'HELLO ...
1
vote
1answer
100 views

Show validation warning if no Excerpt is added

Is it possible to display a warning in the admin section when posting if the excerpt section hasn't been filled out to stop a post being published without an excerpt? Does anyone know of a plugin ...
0
votes
2answers
3k views

Include an image within auto the_excerpt?

Is it possible to include an image within the auto excerpt? So in the editor you have image then some text and once live it includes the image and not just the text?
0
votes
1answer
142 views

Shortcode not displaying video as expected

I have written a short code to display a video off of amazon, and it works. However it is not being placed as expected on the page. I have put the shortcode after the <!--more--> tag but the ...
0
votes
1answer
55 views

What's the internal concatenation function for creating Excerpts with Wordpress?

I'm already familiar with the_excerpt() and get_the_excerpt() functions. These two functions relate specifically to some node/taxonomy/whatever (post, page, custom post type) inside of Wordpress, ...
1
vote
2answers
167 views

Print a message if excerpt is empty after posts have been publish/update!

I don't think I can make the excerpt required, but if anyone knows a workaround please share. At least I want to print a message if excerpt is empty after posts have been publish/update, maybe a red ...
3
votes
5answers
3k views

Show Video in Excerpt

So I recently figured out how to change my blog page to display excerpts by changing the <?php the_content(); ?> to <?php the_excerpt(); ?> in my index.php file. I am using a custom child ...
0
votes
3answers
2k views

How do you edit the html of teaser excerpts

All my teaser excerpts have no formatting applied to them. With firebug I can get the text to look how I want by editing the html but I don't know where to edit the html in wordpress. How can I do ...
1
vote
1answer
341 views

Show Sub pages excerpt+thumbnail

I'm trying to show the excerpt+thumbnail of all subpages in a specific parent; I tried a bunch of plugin but no one actually works as I need; andy advice?
0
votes
1answer
340 views

Handling embedded videos in excerpts

Background: I have a multisite install, where users have their own blogs. I'm working on a page for the main site which will list the most recently updated blogs and excerpts from the first three (WIP ...
1
vote
2answers
418 views

Auto Populate Excerpt Field

How do auto populate the excerpt field with the first 15 words of the post content? I found this snippet: function wps_excerpt_content( $content ) { $content = "YOUR EXCERPT HERE"; return ...