Excerpts are short texts or summaries

learn more… | top users | synonyms

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 = ...
0
votes
2answers
579 views

Creating a press page for our project

Over time our project got some good press: press releases, interviews, media appearances Now I want to create a "press page" (something like this). Requirements: is easy to update - everyone can ...
0
votes
1answer
186 views

How to hide <pre> and <table> content from auto-generated excerpts?

Auto-generated excerpts just take the first x characters from the post content and cut that off at a certain point. When there is a table or pre element in that part, the excerpt looks rather useless ...
0
votes
1answer
314 views

Custom wp_list_pages() function

I have following code in my .php file: $my_pages = wp_list_pages("title_li=&child_of=".$my_id."&echo=0"); Then I create an <ul> <ul> <?php echo $my_pages; ?> ...
0
votes
0answers
101 views

Wordpress not showing full text in feed

I have been reading around and I cannot figure out why (even with the full text option checked in settings) that my feed will only display excerpts of posts instead of full posts. Any ideas? here is ...
0
votes
2answers
70 views

How can i show only 30% of the “the_content(”More…“)”?

I'm trying to make a page that has all the posts in it and shows 30% or less of the content of the post. So I'm editing a page template and I can't figure out how to show only 30% of the content. I'm ...
0
votes
1answer
118 views

Wordpress truncate posts question (plug-in related)

I'm using a plug-in ("Wordpress plugin random post slider") for Wordpress that pulls a random post from a category, and displays it in a slider for use as a shortcode or php code in a template. I've ...
-1
votes
1answer
52 views

Using Schema with `the_excerpt`

I'm currently developing a WordPress site and want to use Schema, I have been some what successful so far but have now hit a stone wall. I want to use: itemprop="description" to the ...
0
votes
2answers
70 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
67 views

excerpt display same text

I start learning Wordpress from scratch then i decided to put the 5 latest post in sidebar, and the code is alright and when i decided to add description using excerpt, excerpt desplay same text can ...
1
vote
1answer
169 views

Display most recent post in full, excerpts of older posts

Running 3.5.1. Is there an easy way to display my most recent post in its entirety and only display excerpts for my older posts on my home page?
0
votes
1answer
243 views

Remove 'read more' link when post is shorter than excerpt

How can I remove the 'read more' link from a post excerpt on a blog/archive page when there is nothing more to read...when the length of the post is shorter than the excerpt?
0
votes
1answer
55 views

How can I add in post's the text “No content”

How can I add in a post the words "No content available" if nothing is ritten Example: If there is no text added, i want to get "No content available" automated in my template. I want to get for a ...
0
votes
2answers
218 views

truncate post with gallery tag

I have one problem I use this function for truncate posts function truncate_post($amount,$quote_after=false) { $truncate = get_the_content(); $truncate = apply_filters('the_content', $truncate); ...
0
votes
1answer
26 views

Problem with viewing single page correctly. (taken half way down the page on click through)

I have a strange situation occurring with a website that I am currently developing. On the main articles page at http://wptest.lancscps.co.uk/articles/ when the user clicks on the continue reading ...
0
votes
2answers
839 views

Excerpt length: get first paragraph

I'm trying to figure out if it's possible to get an excerpt from each post, grabbing the first paragraph from each one. I'm currently using the ACF plugin and have custom post types and custom fields. ...
0
votes
2answers
391 views

Create custom links for excerpts with php dynamically

Good Day I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this: ...
0
votes
1answer
419 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
1answer
286 views

Buddypress: Edit activity when new blog post [closed]

I am trying to edit the activity on Buddypress (1.7 and running latest Wordpress) for when a new blog post is created. By default it displays the excerpt and shows any attached images, it also strips ...
0
votes
1answer
122 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.: ...
2
votes
1answer
206 views

First letter cutting off in excerpt

I'm using a plugin to allow for dropcaps for the first letter in my Wordpress theme. However, the excerpt is cutting off the first letter. For example, a sentence like: "This is a Wordpress install" ...
0
votes
2answers
562 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
2answers
169 views

Replace full content with an excerpt

My theme shows full posts on the main page and I want it to show only the summary, I tried searching for the_content tag in my theme's index.php file but it is not even there! I don't have a home.php ...
0
votes
1answer
159 views

Wordpress excerpt for specific posts in category

Is there any way to create "more" link for excerpt only for posts in a specific category? For example only posts in "news" category should have a more link. If there's no option for that, maybe posts ...
0
votes
2answers
478 views

Removing the […] from the excerpt returned by get_the_excerpt() only in some places

I wish to use the excerpt of a post in the meta description for better SEO, so I am using the get_the_excerpt() function to get the post's excerpt. However, I noticed that at the end it is adding ...
0
votes
5answers
2k views

Get post excerpt and title by specific post ID?

I'm trying to get post excerpt and title by specific post ID. My post ID is 6 and my code as follows <?php $id = 6; $post = get_post( $id ); $excerpt = get_excerpt( $id); $excerpt ...
1
vote
1answer
470 views

Shortcode content does not show in feed discription/excerpt

I have a shortcode for my content. This shortcode organizes a couple of things in my posts on the frontend. However, when I look at my feed, the content in the entirely leaves out any content from ...
0
votes
1answer
49 views

Modify excerpt link

I read the thread about adding a filter on the last line of the code, but am not sure that will work here. http://www.ahy4life.com/resources.php In the middle right column in the Promotions section, ...
0
votes
1answer
668 views

Excerpt Length & List Category Posts Plugin

I'm trying to filter out the excerpt by character length for a plugin called "List Category Posts". I've been trying to get the excerpts working for the past week, but nothing is doing the trick. The ...
0
votes
2answers
3k 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
2answers
284 views

How to wrap “Read More” link in a DIV tag?

Can someone tell me how to wrap the Read More anchor (that displays after an excerpt) with DIV tags using get_the_content('Read More')?
0
votes
1answer
415 views

How to show a full post, not just an excerpt

I have a blog page where blog posts have an excerpt on with a continue reading link below. When the link is clicked the full post should appear/or should be diverted to. This isn't that case. The ...
1
vote
2answers
84 views

Why does running get_the_excerpt() when generating JSON file take 28 seconds vs. 599 milliseconds without it?

I am using the following code to generate a JSON feed. I need to extract the excerpt from posts, but when I run get_the_excerpt() it takes 28 seconds (yes SECONDS!) to run on my local server versus ...
1
vote
1answer
438 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 ...
0
votes
1answer
224 views

The_excerpt() doesn't parse <!--more--> - how to change that?

I'm using the_excerpt(); in blog.php file (post listing page) and it doesn't recognize <!--more--> if "Excerpt" field is empty and it grabs the beginning of the content as excerpt. This issue ...
-1
votes
1answer
430 views

Adding Meta Tags to a Post using its Tags, Excerpt and content

I run a multiple author platform where I have added conditions that force authors to add tags to their post. To improve SEO, I would like to add Meta Tags to the posts. Ideally, with a light solution ...
1
vote
2answers
840 views

How to disable automatic excerpt generation *in admin*?

I'm adding a custom column named Excerpt with Codepress Admin Columns, and would like to know specifically when the Excerpt has not been filled out. Instead WordPress shows post content automatically, ...
1
vote
2answers
406 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 ...
1
vote
2answers
9k 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 ...
1
vote
1answer
103 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, ...
3
votes
2answers
604 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 ...
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 ...
0
votes
1answer
461 views

Trying to edit archive.php to only show post extract, with featured image

I am using two themes (full and desktop), so I am trying to get them to behave in the similarly. The archive.php for the mobile theme is doing what I want, which is to just show the title and post ...
2
votes
3answers
694 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); ...
-1
votes
1answer
590 views

wp trim function not working

Ok i have this code currently. <?php query_posts('category_name=widgets2'); echo "<div id='widgets-wrapper2'><div id='marginwidgets' style='overflow: auto; max- width: 100%; height: ...
2
votes
2answers
476 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
413 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(); ...