Displays the excerpt of the current post with the "[...]" text at the end, which is not a "read more" link. Used to directly display the excerpt, but it adds opening and closing tags to the string returned by get_the_excerpt().

learn more… | top users | synonyms

3
votes
1answer
865 views

First three images in post excerpt

I have certain posts that are nothing but [gallery] with quite a few images in them. Is there a way to define an auto generated excerpt to only display the first three images for these posts on the ...
2
votes
3answers
599 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); ...
4
votes
2answers
309 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 ...
2
votes
1answer
2k views

How to include line-breaks in the_excerpt?

how can I include a line-break inside the_excerpt. I’ve modified the length and the more-button via my functions.php. I’m using teaser for every blog-entry and sometimes it looks a bit ugly, that ...
0
votes
1answer
710 views

get excerpt without images

Is there any way to not get the images with get_the_excerpt()? I am using a my_recent_post() function to pull posts onto the home page and I don't need to have it pull the images within the posts, ...
1
vote
1answer
689 views

Adding Videos as post-thumbnails (no stills, just the player in a smaller size)

I’m using Excerpts with post-thumbnails on my startsite. Adding Images is working pretty fine. But how can I embed a video from vimeo or youtube as a post-thumbnail? Just the video in a smaller size, ...
1
vote
2answers
477 views

Different 'read more' links

Is there an easy way to add another 'read more' link? I'm using the standard 'continue reading' link for some posts but I also want to use a different text like 'more info' for other posts. Can I do ...
0
votes
2answers
576 views

Way to show content of a post, but if exceeds character limit revert to excerpt?

So I am working on a site for a client of mine. We have about 50+ posts filed in a category called "Articles". I created a custom page template that has a custom query to display all the posts in a ...
2
votes
1answer
404 views

The excerpt: Display text OR image OR video

Is it possible to adjust the excerpt so it will show text or one image or one video? The following codes makes it possible to show all of the above, but i'd really like to limit that, dependent of ...
2
votes
1answer
461 views

Add $more_link_text parameter to the_excerpt()

this filter is on the Wordpress Codex …  add_filter('excerpt_more', 'new_excerpt_more'); function new_excerpt_more($more) { global $post; return '<a class="moretag" href="'. ...
8
votes
2answers
422 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 ...
0
votes
1answer
63 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
494 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
121 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 ...
3
votes
1answer
469 views

When is wp_trim_excerpt() called?

There doesn't appear to be any reference to wp_trim_excerpt() outside of it's declaration - I've checked both the Trac and Xref - when does it work its magic?
1
vote
1answer
540 views

the_excerpt(); tag not working

I am having a problem with the the_excerpt(); tag which I am using in my own theme in the index.php and archive.php files. The code is below: index.php <?php get_header(); ?> <section ...
1
vote
2answers
173 views

Combining the_excerpt with the_content

I have some html: <div class="container"> <p class="accent">The first paragraph...</p> <p>The rest of the article...</p> </div> I'd like to put "the_excerpt" in ...
0
votes
2answers
510 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
3answers
274 views

the_excerpt - want to modify password protected output

I'm looking to modify the output of the_excerpt when there isn't an excerpt specified and the post is password protected. I already can modify the password protected form to whatever I want, but ...
0
votes
1answer
52 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
3answers
2k views

the_excerpt() not showing manual excerpt for Pages

I have enabled the excerpt feature for pages in my wordpress theme - add_action( 'init', 'my_add_excerpts_to_pages' ); function my_add_excerpts_to_pages() { add_post_type_support( ...
0
votes
1answer
1k views

the_excerpt and shortcodes

I'm using the_excerpt on my index page. I'm also using a dropcap shortcode at the beginning of each of my posts. On the index page the posts will not display the letter with the dropcap shortcode ...
0
votes
1answer
219 views

Problem on the_excerpt(); function <the_excerpt> <the_content>

I am working on wordpress but I have problem when I write the_content('read more'); then on indexpage each post load full data of post but I want to but when I am using the_excerpt(); then ...
1
vote
1answer
70 views

How to change the length of excerpt() method?

I am using the_excerpt() method to display some wordings from the blog posts. I have read the post from this link. http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length But my ...
0
votes
1answer
85 views

Two “the_excerpt” questions

In case there's more than one function the exact one is: php the_excerpt(); I want to decrease the character length to X amount and I want to remove the [...] and replace it with an image that users ...
0
votes
1answer
75 views

matisse theme show excerpts not whole content

I want to only show the excerpts, not the entire content, This question has been asked and answered in respect of the twenty eleven theme. Matisse theme is different. where can i find the files to ...
7
votes
3answers
5k views

apply_filters() and the_excerpt are giving unexpected results

I feel like I must be missing something pretty obvious, here, but I can't seem to get WordPress to cooperate. I'm generating Facebook OG tags with a function. Everything works fine, except for the ...
2
votes
0answers
83 views

Getting the_excerpt to link to child pages [closed]

I'm using the Twentyeleven 'continue reading' function for my excerpts function twentyeleven_continue_reading_link() { return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Read more', ...
2
votes
2answers
6k views

How to get attachment caption (get_the_excerpt gives parent post excerpt) ?

I am displaying the attachments on the parent post page with this code : $args = array('post_type' => 'attachment', 'post_mime_type' => 'image', 'order'=> 'ASC', 'numberposts' => ...
1
vote
2answers
208 views

Disabling automatic teasers

I have a custom theme that displays the excerpt: $data = get_the_excerpt(); if ($data) echo "<div class='excerpt'>$data</div>"; if nothing is entered in the excerpt field in ...
3
votes
1answer
2k views

How to use the_excerpt in a filter hook?

I was hoping to process the_excerpt just like one would with the_content, but no such luck. How can I pass the excerpts of a Posts Page, through my plugin? I've tried variations on this: ...
0
votes
3answers
636 views

how to include page content to specified length & then “read more” link

I'm pretty new to WP, so please forgive any stupid questions and/or coding! I'm using the following code in my index.php file to include content from another page: <div id="tm-container"> ...
1
vote
2answers
2k 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
2answers
2k views

the_excerpt() and <— more --> tag

On my archive page, the_excerpt() does not display content before the more tag, but a cut of the post's full content. I'm obliged to fulfill the "Excerpt" in the post editor which will override it. ...
0
votes
2answers
2k views

How to remove “Read on” content in the_excerpt?

I know the_content has the handy dandy $strip_teaser argument that lets you set whether there is "continue reading" text. No such luck for the_excerpt... I would like to just get rid of it. I had ...
2
votes
4answers
13k 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
297 views

Force WordPress to NOT display the manual excerpt

I'm forced to use manual excerpts on a number of my posts to integrate them with a shortcode plugin. However, this is interfering with how they're being displayed on an archive page (using a page ...
0
votes
1answer
438 views

Problem in replacing the_content with the_excerpt()

I want to add read more to a blog. For that I need to replace the function the_content(). I found it in the loop file and replaced it with the_excerpt() but still posts are being shown of full length. ...
0
votes
2answers
887 views

Giving the_excerpt in the place of the_content?

Short and sweet — I wanted to deliver up the excerpt of a post in the place of the_content on certain pages. Naturally, if no excerpt is present one would be generated from the content. I ...
3
votes
1answer
3k views

How to override function in functions.php of parent theme?

I have created child of theme twentyten. I tried to override function written below /** * Returns a "Continue Reading" link for excerpts * * @since Twenty Ten 1.0 * @return string "Continue ...
2
votes
1answer
856 views

the_excerpt(), get_the_excerpt() and the_content() all killing “the Loop”

Before I call the_excerpt(), the_permalink() displays the correct thing. Afterwards, it does not... <?php global $query_string; //strip out the ...
3
votes
1answer
376 views

How to call the_excerpt() with tags or the_content() as an excerpt?

Is it possible to call the_excerpt() with tags intact? I'd like to create a excerpted listing of my posts in a specific category, but I'd also like the links and formatting carried over from the post ...
1
vote
1answer
1k views

How to make the excerpt_more filter apply to the actual post excerpt?

In the get_blog_excerpt() function below, the excerpt_more filter works perfectly when the post excerpt is not present, however, when the post has an excerpt, I'm not getting the "Read More" link. I ...
1
vote
1answer
174 views

How to obtain a reference to the_excerpt() from custom loop

I have a script in archive.php, which is outside the loop, that calls on the function get_blog_links() to list all posts that belong the the current category (my "blog" category). I'm trying to do ...
0
votes
1answer
416 views

Calling the_excerpt from inside a plugin template file

Im trying to use the_excerpt form inside a plugins template file, plugin is wp-favorite-posts by default the plugin only lists and displays the saved post title, i have manged to get it to show ...
0
votes
1answer
316 views

the_excerpt function not showing image

I am having posts with images.In single post page all contents displaying well with image. But in blog page , the content only displaying not an image. How can i make it to display For example, ...
0
votes
1answer
807 views

How do I pull excerpts from pages?

So I enabled custom excerpts on my pages with this function. add_action('init', 'page_excerpts'); function page_excerpts() { add_post_type_support( 'page', 'excerpt' ); } However, When I enter ...
1
vote
1answer
618 views

excerpt - don't use main content if empty

trying to stop get_the_excerpt() from defaulting to the_content() if its empty. this kinda works - well it seems to return 'xxx' so i think has_excerpt() isn't working? function get_link_excerpt(){ ...
0
votes
2answers
113 views

Excerpt Is Disappeared

My theme automatically assign before of <!--more--> tags, as excerpt.And showing excerpt on home page. Now i want to add Google Adsense after <!-- more --> code. I'm wrote this function ...
0
votes
3answers
3k views

Custom page template how to check is_page from functions.php?

Have a custom page template and trying to make the excerpt length dynamical depending on what page you are in. Functions.php <?php function custom_excerpt_length($length){ if (is_page(15)) { ...