The the-excerpt tag has no wiki summary.
-2
votes
0answers
18 views
does not work … More
I am using Origin theme. In functions.php file I change:
function origin_excerpt_more( $more ) {
return '...';
to
// Replaces the excerpt "more" text by a link
function ...
-2
votes
0answers
10 views
the_content to the_excerpt 2 [duplicate]
There is index.php file. How I can change the_content to the_excerpt, when there is no line with the_content words. What should I do? Please help. Under post I want to make a link more... but not just ...
-2
votes
1answer
22 views
the_content to the_excerpt
How I can change the_content to the_excerpt, when there is no line with the_content words. Please help.
<?php do_atomic( 'before_content' ); // origin_before_content ?>
<div ...
0
votes
1answer
27 views
How to achieve two different excerpt types on one WordPress site?
Working on a client site that displays a blog excerpt on the blog page (which shows 5 posts per page) and the main home page (which shows the latest 3 blog posts).
The trouble is I want different ...
0
votes
1answer
61 views
Why is the output of a call to the_excerpt different when the call seems to be identical?
Ok I've been asked to fix a problem on a website that is a bit weird. The index page (template-magazine.php) here, Has this bit of code:
<?php get_template_part('loop'); ?>
to produce a ...
0
votes
1answer
42 views
how to use the_excerpt for two post queries?
I am new to Genesis, i created a child theme it has two post types, one for the THEMES i want to display and other for the PORTFOLIO. both of these are having the_excerpt in their loop,
I want to add ...
0
votes
2answers
20 views
the_excerpt not displaying
I have a loop where I display all posts on the site, the problem is that the_excerpt is not being displayed. What am I doing wrong?
<?php
$all_posts = get_posts(array('numberposts' => ...
0
votes
1answer
154 views
Wpautop stops working after get_the_excerpt
function pre_process_shortcode($content){
global $shortcode_tags, $shortcodes;
// Backup current registered shortcodes and clear them all out
...
0
votes
2answers
54 views
Inserting shortcode is blanking excerpt - any ideas?
I wrapped a shortcode around my post content and I have noticed it is making the excerpt blank on archive pages instead of auto generating one from the_content/post. At a loss as to what is causing it ...
2
votes
2answers
88 views
How to show video from specific category on sidebar?
I need to get video and content from recent posts in specific category called "Video" and show it on my sidebar.
The problem is when I need to have limited text content. so, when I use the_content(); ...
1
vote
2answers
204 views
Limit the_excerpt with max of x characters
What I'm trying to do:
I want to display the_excerpt, but I have a maximum of x characters the_excerpt may use, but I don't want to display a couple of characters of a word, only whole words.
Some ...
0
votes
1answer
98 views
get_the_excerpt() with fallback like the_excerpt()
You know when using the_excerpt() and no "excerpt" is set on a post it automatically uses the first 50 words or so.
Is the same also possible when using get_the_excerpt()
For instance I'm using ...
2
votes
2answers
311 views
Remove “Continue Reading” Link From the Teaser Excerpt Only
I want to remove the "Continue Reading" link from the teaser excerpt only and not from the automatic excerpt, which filter is easily available.
This is the original code; it's from the Showcase ...
0
votes
2answers
150 views
How to add an excerpt and read more link to a page?
I've a custom/static "homepage.php" in my templates directory at my WordPress. Now I need to show differents "page excerpts" in my homepage, but I don't know what should be do it.
At this moment I've ...
0
votes
1answer
76 views
how can I list recent posts' excerpts
I am using this directly from the codex to list 3 recent articles titles.
<ul>
<?php
$args = array( 'numberposts' => '3');
$recent_posts = wp_get_recent_posts( $args );
foreach( ...
0
votes
1answer
111 views
add_filter on “the_excerpt” only works when post does not have excerpt
class my_menu extends WP_Widget
{
function widget($args, $instance)
{
// Excerpt length filter
$new_excerpt_length = create_function('$length', "return " . $excerpt_length . ";");
if ( ...
0
votes
2answers
89 views
the_excerpt() or get_the_excerpt with shortcode escape
I have few posts which have a dropcap shortcode wrapped around the first character like so:
[dropcap]T[/dropcap]his is a dropcap.
The replacement for this shortcode yields:
<span ...
0
votes
1answer
77 views
How to disable the_excerpt from one post
I have this code for the_excerpt :
function get_excerpt(){
$excerpt = get_the_content();
$excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
$excerpt = strip_shortcodes($excerpt);
...
0
votes
2answers
589 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
1answer
56 views
“the_excerpt” in loop just keeps repeating first post?
I'm trying to edit the loop in my archive.php template so that when I visit a category page, it only displays the post excerpt and uses the featured image as a thumbnail.
When I add the_excerpt() to ...
1
vote
1answer
68 views
Give “Read More” precedence over excerpt() word count
By default, the_excerpt() displays the content before the <!--more-->, trimming it at ~50 words.
Is there any way to prevent this trimming functionality when the <!--more--> is present, ...
2
votes
1answer
467 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
313 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
155 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
759 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
0answers
173 views
Does anyone have problems with the_excerpt on wp 3.4.2 [closed]
I’m using the_excerpt in my wp-theme. It worked pretty fine, but no it stops working. Does anyone recognized any problems with this function after updating form wp 3.4.1 to 3.4.2? Or any problems with ...
0
votes
1answer
334 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
276 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
224 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
460 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
217 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 ...
1
vote
1answer
320 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="'. ...
7
votes
2answers
308 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
52 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
304 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
104 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
301 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
441 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
134 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
331 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
155 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
42 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
1k 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
557 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
200 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
59 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
80 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
71 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 ...
6
votes
3answers
3k 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
80 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', ...

