Excerpts are short texts or summaries

learn more… | top users | synonyms

0
votes
1answer
128 views

Add a minimum word count to Excerpt (and how to force Excerpt as a rule for WyPiekacz)

How do I add a minimum word count to the Excerpt field before the post can be sent for pending review? I want to require content in the Excerpt field. And also, how do I add the Excerpt field as a ...
1
vote
1answer
383 views

Mandatory excerpt for custom post type

This is proving to be a challenge. I'm trying to make the excerpt a required field, but only when editing/saving a post in a custom post type. The following code makes the excerpt a required field ...
3
votes
1answer
90 views

Manual excerpts for pages not working on Search

Image says it all... Page Edit: Search Results: functions.php to enable page excerpts add_post_type_support( 'page', 'excerpt' ); search.php code for displaying excerpt <?php ...
0
votes
2answers
648 views

How to get the excerpt of a page before more tag?

I have many pages in my wp installation. All I want is to be able to display the excerpt of any page, also on any page (before more tag). How do I go about it? I was fetching the content of the ...
1
vote
1answer
376 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
1answer
38 views

Category view with contents of [gallery]s shown

SO: I have a bunch of Posts with [gallery]s in them. They are in category "Galleries". I want the category view to show (some||all) of the contents of the galleries in each post. Instead it seems ...
2
votes
1answer
73 views

make a excerpt on data from a meta box?

I have made a custom post type called news that has meta boxes. I would like to print the data from the metabox as a excerpt. How can I do that? This is the code that I use that prints the data : ...
0
votes
0answers
20 views

Generate excerpt (respecting <!--more--> if it's there) “by hand”

I have a post archive page that's loaded by AJAX so I am manually retrieving the posts via WP_Query and then manually displaying $post->post_content, etc. The problem is that I'm not using The ...
0
votes
1answer
162 views

Unable to change the “Read more” text inside the_excerpt

I am unable to change the "Read more" text while using the excerpt. I've tried the following code: function new_excerpt_more( $more ) { return ' <a class="read-more" href="'. get_permalink( ...
-1
votes
1answer
368 views

Function to shorten string without cutting off last word

This code is working great to shorten a strong of text to the nearest end of a word except that if the string is shorter than the cut length, it cuts off the last word. Can anyone tell me what to ...
0
votes
1answer
124 views

How to stop unwanted splits in excerpts when using shortcodes for sliders or players

Am using this code in functions.php: Issue with enabling formatting in excerpts in Wordpress to allow shortcodes, javascript and formatting in the excerpt - works great, thanks. However, I am also ...
0
votes
1answer
818 views

Limit number of characters in different excerpts

I've been using this little snippet from another answer on here to limit the number of characters that display in the excerpt; add_filter('wp_trim_excerpt', function($text){ $max_length = ...
0
votes
1answer
151 views

Can't change excerpt length and more tag

I tried to change the excerpt length and the more tag the way it is described in the codex: function custom_excerpt_length( $length ) { return 10; } add_filter( 'excerpt_length', ...
0
votes
1answer
101 views

Read more to open external link

I would like to have custom field in post editing area where can be putted the external link. If the link is entered to this field then read more button on homepage would open external link, but if ...
0
votes
1answer
187 views

Bold letters inside excerpt [closed]

I'm currently trying to get some of the words that are inside an excerpt to be bold with "h1" tag but it does not seem to be working. When I checked online, all that I come ac cross was the suggestion ...
2
votes
1answer
84 views

Get the excerpt for a post created by the related author

This has been bugging me for ages and can't quite get it working. I'm using the following code in my functions file to enable me to display posts created by the same author as the current single ...
0
votes
2answers
57 views

Exclude uploaded files from appearing in the excerpt()

In a post I have some text and some media attachments and when I use the_excerpt(), it strips all the anchor tags from the attachments and shows just their file names and its causing me problems as ...
0
votes
0answers
105 views

Extending wordpress search to include excerpts and taxonomies?

Apologies for the lack of code, but I have no idea where to start with this - is it possible to extend Wordpress's search function to include excerpts and (custom) taxonomies as well as the standard ...
8
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 ...
0
votes
2answers
120 views

stripping tags from excerpt in Wordpress is not working

I am using this snippet <a href='<?php the_permalink() ?>' title='<?php echo strip_tags(the_excerpt()); ?> with which I am intending to remove all ellipses, <p> tags and other ...
1
vote
0answers
193 views

Regenerate auto excerpts after updating many posts

I had around 100 posts that I imported into my blog. Many of the special characters (e.g. apostrophes, etc) were mangled upon import. I finally went through and fixed them all manually by editing each ...
2
votes
2answers
252 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 ...
-1
votes
2answers
111 views

Get a raw value of excerpt

I am trying to print the post excerpt using the following code: <?php echo $post->post_excerpt; ?> It works fantastic the only problem is that apparently I get also predefined styles and ...
1
vote
1answer
620 views

How can i display the content in plaintext

i want to display my excerpt in plaintext. How can i do this? This is my Snippet where i display the content: <?php the_content(__( 'Weiterlesen &rsaquo;','okay')); ?> How i change the ...
2
votes
2answers
318 views

Can I have two single.php files and have one display just the post and the other display comments for that specific post?

Obviously, I know I can't have two single.php files. The one with the comments would have to have a different name...maybe single-comments.php or something. I am working on a restaurant reviews site ...
0
votes
2answers
103 views

Creating a function that sanitizes the custom metabox excerpt

I'm still getting to grips with functions and experimenting with different php functions. I've created a function what I want to use in sync with my custom metabox excerpt. It will basically sanitize ...
0
votes
2answers
44 views

Adding […] string for a custom excerpt function

My blog is photo-oriented and the theme has a special excerpt function that, for better or for worse, I'd like to keep using. Anyway, it displays the excerpt and then the "More", but it just ...
0
votes
1answer
52 views

has_excerpt yields true but no post_excerpt when retrieved

echo has_excerpt($att); //Results in True echo $att->post_excerpt; // results in empty. echo $att; // results "782" which is the ID of the attached image. If I use get_post_meta( $att , ...
0
votes
1answer
68 views

Replace text in excerpt

I have a separate theme for my custom WP install that will be use for mobile users, in my case I need to change an html tag in all the excerpt instances but without altering the DB, I found this ...
1
vote
1answer
45 views

read more, even if excerpt not trimmed

I am using the excerpt field (Not the tag, because the excerpt also serves as a lead paragraph). I altered the "more"-link to be an arrow >. function fabs_excerpt_more( $more ) { return ' <a ...
0
votes
1answer
64 views

[Plugin leenk.me]modify get_the_title

I use a plugin called leenk.me to post messages to Facebook based on my posts. One of the custom fields is %TITLE%, which posts the title of my post and the link to my post. if ( false === ...
0
votes
1answer
75 views

Why archive page can't show full content?

I use "insert more tag" insert more tag for a post. It works fine, at front page show excerpt, at single page show full content. but at archive page show excerpt, I want show full content here. Here ...
3
votes
1answer
582 views

Neither the_excerpt() nor the_content() works properly?

I'm wondering what should be used in index.php (post listing page): the_excerpt() or the_content()? Twenty Thirteen uses the_content() but this prints entire content unless <!--more--> exists ...
0
votes
2answers
292 views

How to add excerpt in loop in Twenty Eleven theme?

Here is my loop code located in index.php file. I am using Twenty Eleven theme. <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ...
1
vote
1answer
96 views

Custom Excerpts Per Page

I'm trying to set up a specific page to use a specific number of characters in an excerpt. I tried using this code, but it broke the site: function wpse61271_custom_excerpt_length( $length ) { ...
0
votes
2answers
191 views

Add rel=lightbox to custom string

I'm using the following code in my functions.php to show thumbnails in my excerpt: function pietergoosen_kry_eerste_prentjie() { global $post; $first_img = ''; $output = ...
0
votes
1answer
569 views

apply_filters('get_the_content', $content) + Except

I'm using the following function to load my content dynamically: apply_filters('get_the_content', $content) However, I would like to apply an excerpt to this method but the only way I know how to ...
0
votes
1answer
31 views

More link - not text

I am using origin theme. This theme writes dots in post end. In functions.php file I saw line with text: function origin_excerpt_more( $more ) { return '...'; I changed text to More... and ...
0
votes
1answer
65 views

Change image link in excerpt to point to post

By default, images included in an article link to the full-size-image url. Having such an image in an excerpt shown on the start-page, because the more-tag was added after the image (which is ...
0
votes
1answer
32 views

first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]

The front page of the blog is intended to show post excerpts and a cropped version of the post image. The first/most recent excerpt is perfect, however the older subsequent excerpts are showing up ...
1
vote
2answers
242 views

Include post title in readmore link?

Trying to include the post title in my excerpt readmore links. I've read the codex on this, but my theme files are much more complicated so I could use a bit of expert help... Extract from ...
0
votes
2answers
57 views

Removing h3s in excerpt output?

I have a custom post type and the content looks something like this: <h3>Description</h3> The Production Assistant works closely with the production team to ensure that our games ship on ...
0
votes
1answer
284 views

Get content or excerpt of top rated votes @GD-Star Rating?

I am using the GD-star Rating plugin and I have a function which outputs the top rated posts. The problem: it won't show the content or the excerpt of those posts. How can I do this? This is the ...
0
votes
1answer
561 views

Display post excerpt instead of content, if available

I'm planning to display the post excerpt instead of the content if available and auto generate excerpt from the content if not available with the function below: <?php the_content( __( 'Continue ...
0
votes
0answers
305 views

Custom excerpt_more filter not working when <!--more--> tag is present

I'm doing this inside Thesis 2, in case that matters. I am using the_excerpt(); on my blog page to get the posts. And I'm using two custom filters: function custom_excerpt_length( $length ) { ...
1
vote
2answers
136 views

How to remove the excerpt in the Dzonia Lite theme

I am using Dzonia Lite theme in my website. My front page shows all the latest posts. I am getting an excerpt at the end of each post. Could anyone suggest me how to remove that excerpt at the end ...
1
vote
1answer
98 views

Word Count Function Preventing Permalink Editing

This code counts the number of words in an excerpt and adds it to the excerpt meta box in the post edit screen: http://snippi.com/s/sn3hk5p However, something about this code is preventing the ...
0
votes
1answer
134 views

multiple excerpt length and styles

I am working on a site, which have many excerpt like text but with different style of read more or click here to read more with different length. is there a way i can make excerpt length according to ...
0
votes
1answer
314 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
1answer
125 views

How to display page excerpt with readmore link inside an enhanced widget?

I'm trying to display an excerpt of a page inside an enhanced widget. I have tried the following but it doesn't work: <?php $id = 2550; $post = get_post($id); $content = ...