Excerpts are short texts or summaries

learn more… | top users | synonyms

0
votes
1answer
15 views

getExcerpt: Make ellipsis appear only if character limit is reached

I have a function called getExcerpt that displays the first 140 characters of an excerpt and after that, an ellipsis appears. The call in my template is like this: <?php echo get_excerpt(140); ...
0
votes
1answer
21 views

Private Post BUT Public excerpt on Homepage

I'm building a website for a french school. My problem : part of the website content will be private. Me and some other specified users will publish private posts (posts that only the 600 ...
0
votes
1answer
25 views

Archive page if else not working for post_excerpt and post_content

I want to show the excerpt from a post only if it exists. If it does not I want to show an excerpt of the content text of the post. Here is what I came up with: <?php $my_excerpt = ...
0
votes
0answers
16 views

Get the excerpt length to return attribute

I am writing a shortcode where I would like to set a number to an attribute and then return it in the excerpt. So the shortcode [excerpt_test=10 another_option=something] gets me the excerpt length of ...
0
votes
0answers
26 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
0
votes
2answers
17 views

Manual excerpt being ignored on custom post type

I've set up some custom post types with Pods, but can't seem to get it to display my manual excerpt. It's working fine for my normal posts. I've tried displaying it with echo get_the_excerpt() and ...
-3
votes
1answer
51 views

Excerpt length and alignment [duplicate]

I want excerpt to be appear in paragraph, atleast 400 words and words should not be cut at end. This is my website and it should be align left. i want excerpt like single post style. And i dont want ...
0
votes
0answers
12 views

How to auto generate title if no title (empty), using excerpt

I don't know much about php or anything at really. I just moved from tumblr and I have about 800 posts with no post titles which is hurting me. I do know how to place the Excerpt in the tag to ...
0
votes
1answer
27 views

Create page excerpts for landinpage

Forgive my ignorance in wordpress, but I'm not finding the information I am looking for. What I am trying to do is (on an existing site) remove dropdowns from navigation by creating landing pages. In ...
0
votes
1answer
20 views

Get link from wpe_excerpt “read more” and move it

I apologize in advance, I'm no wordpress developer, and am having a difficult time transitioning to cms dev from organic dev, so sorry if this is a simple question or has been asked in different words ...
0
votes
1answer
25 views

Excerpt showing under title in admin columns

I am developing a site for a client, but i am facing a weird issue that is excerpt by default shows under title in admin columns. This is happening for all post types including custom post types. I ...
0
votes
1answer
34 views

How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]

As the picture says I am trying to remove the three dots that follow the end of the blue sentence (shown in the photo). I am also trying to increase the numbers of characters it can reveal. ...
0
votes
1answer
33 views

need help with '… read more' excerpt in functions.php

I have this to generate the link: <a class="view-article" href="' . get_permalink($post->ID) . '">' . __('View Article', 'html5blank') . '</a>'; But I don't want it to open the post ...
0
votes
1answer
20 views

How to Get Shortcode in Excerpt to follow Document Flow

I have the following Post - Excerpt: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sagittis augue sed orci efficitur convallis at sit amet lectus. [my-short-code] I have the ...
0
votes
1answer
36 views

Excerpt function for any content

Is there an excerpt output function in wordpress I can hook into regardless of the field used, rather than just the main content field? I have a CPT using custom fields, and rather than creating a ...
0
votes
0answers
10 views

Excerpt text not showing in meta box, causing flush on update?

I've created a custom post type that supports excerpts. On a post update of this custom post type, the content in the textarea for the "Excerpt" meta box is saved, however it isn't output into the ...
0
votes
1answer
34 views

Excerpt for pages not showing

I am creating a simple wordpress theme and need excerpts for pages. I have tried the code from many topics some resolved on 'wordpress SO' but nothing works. Because I created the theme from scratch ...
0
votes
1answer
48 views

Replacing the ellipsis with three dots

I'm having an issue with the ellipsis generated by the_excerpt(). I'm using a custom font which doesn't have the ellipsis character, therefore I just have a random character instead of the usual ... ...
0
votes
1answer
95 views

How to Display a Single Post Excerpt

Is it possible to show the excerpt for a known and single post (on the Home Page) while in the loop? I tried each of these and none of them work: <?php echo the_excerpt('10'); ?> <?php echo ...
0
votes
0answers
28 views

Adding a link from post excerpt to full post — irrespective of excerpt length

On an archive/blog page, I would like to automatically display a link from the post excerpt to its corresponding full post -- even if the post has an excerpt but the excerpt is shorter than the ...
0
votes
1answer
24 views

Remove “[ ]” from excerpt in highlight search term

I am using highlight search terms in my wordpress website. In my search result, the last character of the excerpt is as below: This is the excerpt.[...] I have the code in my functions.php which ...
6
votes
2answers
272 views

How to force excerpts / teasers in the loop

When I'm in "the loop" (archive pages etc.) how do I force teasers / excerpts for all articles, regardless of whether they contain the <!--more--> tag or not? Details: I'm starting off of the ...
0
votes
1answer
72 views

the_post() within switch_to_blog() altering my excerpt

I have a strange problem I'm facing when using WP_Query with multisite in a plugin I'm writing which hooks into add_meta_boxes. I'm wanting to display all post titles in a dropdown in a meta box. ...
0
votes
0answers
17 views

How to remove programmatically added content from excerpt?

I am using the Bottom of every post plugin located here to add static content to the end of every post. The plugin is working brilliantly, except the content is being added to the excerpt also. ...
4
votes
2answers
42 views

Check if the user has explicitly set an excerpt

Is there a way for me to check if the user has explicitly set an excerpt? I need to call the excerpt only if they've specified something in the excerpt field, and not an automatically shortened ...
0
votes
1answer
69 views

Creating excerpt with simple “Read more” link

I've read dozens of articles on how to create an excerpt but nothing has worked so far. For testing reasons I use the "Twenty Thirteen" theme, although I developed a child template. In the index.php ...
0
votes
0answers
19 views

remove_filter not working as expected

I'm using the social buzz plugin. There's a line that says add_filter( 'the_content', 'sbp_5e7bb6' ); This causes the plugin code to be visible when I call get_the_excerpt so what I have done is ...
0
votes
1answer
95 views

Excert ( the_excerpt(); ) Not working properly

I am creating custom theme, I have included excerpt in the index file <article class="post"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ...
0
votes
1answer
57 views

The excerpt doesn't add Read more

I am confused about the behaviour of the_excerpt() and get_the_excerpt(). My objective is to have a manual excerpt and display a continue reading. I went through this article, and apparently ...
0
votes
2answers
94 views

Excerpt length: get 2 paragraphs

I have successfully implemented a solution from WPSE that trims the except to the first paragraph, but I'd like to change that to trim after the second paragraph instead. There's a link floating ...
0
votes
0answers
58 views

Protected Excerpt Text

On this page of the WordPress Codex it says: Protected Excerpt Text The default Excerpt of a password-protected post is: "There is no excerpt because this is a protected post." This code ...
0
votes
0answers
62 views

Excerpt content

I want to display the title with content in result in search engine using excerpt. I see an answer for excerpt, See this, but I'm confuse where do I place this code... in function or ...
0
votes
1answer
112 views

Make the title and […] clickable in result search

I have search engine in my site. But when I try to search something, like "loan", the title is not clickable and the other contents are not displaying How to display the content and the title make as ...
0
votes
1answer
51 views

How can I show post excerpts on the tags page?

I want to see excerpts on my tags page (e.g., http://domain.com/wp/?tag=psychotherapy), rather than the full length post. How do I do this? I see the following in the tags.php page for my theme: ...
0
votes
1answer
73 views

Check if excerpt is empty at loop-portfolio

I want to check if excerpt is not empty, then echo the excerpt link, if not the echo permalink, like this: if(the_excerpt()!='') echo the_excerpt(); else echo get_permalink() but how can I check if ...
0
votes
0answers
67 views

is_page_template() doesn't work with excerpt_length filter

I am tring to set a different excerpt lenght for the pages that use an specific page templates using excerpt_length filter. This is the code: add_filter( 'excerpt_length', 'nmd_excerpt_length', 999 ...
0
votes
1answer
178 views

run shortcode in excerpt of single custom post type

Hi because of the way my theme is set up, I need to run a shortcode inside the excerpt of a custom post type (services). This is the code I have so far... function ...
0
votes
0answers
37 views

Keep shortcode in shortpost contents excerpt

I'm really confused , when I use some default theme like twentyfourteen, shortcodes show well in shortpost, but when I use theme that someone design for me , in shortpost I get shortcodes as text !! ...
0
votes
2answers
258 views

Remove more or […] text from short post

I use a theme that have a character limit for shortpost and show [...] at the end of character limit. I want to remove this, so I search for the_excerpt(); and replace with the_content(); The ...
0
votes
1answer
62 views

shortcode issue in the_excerpt

I had this custom shortcode working but it seems to have stopped. I had the code running through another shortcode that ran the loop for category posts. I have since improved the code so that it works ...
0
votes
2answers
281 views

Empty excerpt using wp_get_recent_posts

I have this simple shortcode to display the last posts with it's title and except: add_shortcode('latest3', function(){ $recent_posts = wp_get_recent_posts( array( ...
0
votes
1answer
61 views

How to show an entire post content and not also the excerpt?

I am pretty new in WordPress theme development and I have the following problem showing posts. You can easily understand what I mean opening this link: ...
0
votes
3answers
1k views

How to get post or page excerpt using post_excerpt

I am using the following foreach loop: $pages = get_pages(array ('post_type' => 'page','sort_column' => 'menu_order',)); foreach ($pages as $page) { $apage = $page->post_name; ...
-2
votes
1answer
68 views

Export Posts in excel [closed]

How can i export post only with this data in excel :- Post title - Post URL - Author - publish Date Thanx
0
votes
0answers
611 views

wp_trim_words is trimming by character instead of by words

I'm using Wordpress 3.9.2, and having trouble with the wp_trim_words function. It seems to be cutting the string down to X characters instead of X words. Example Put the following in a template ...
0
votes
1answer
42 views

Excerpt filter is adding '</p>' in incorrect place

I'm using the following code from this question in order to limit the excerpt length to 2 paragraphs. if ( ! function_exists( 'wpse0001_custom_wp_trim_excerpt' ) ) : function ...
0
votes
0answers
78 views

Strip 'p' tags in wp_trim_excerpt()

When I have a lot of paragraphs in a post and trying to display an excerpt in blockquote, all <p> tags are stripped, and whole 55 words are in one <p> tag. <blockquote cite="URL"> ...
0
votes
1answer
41 views

Adding Read More to Custom excerpts

I've added the following code to my functions.php: function new_excerpt_more($more) { global $post; return '<strong><a class="moretag" href="'. get_permalink($post->ID) . ...
0
votes
1answer
163 views

Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?

I have this code to display 4 posts of type "testimonial" on the Home page: <?php $custom_posts = get_posts([ 'numberposts' => 4, 'post_type' => ...
0
votes
1answer
35 views

Return only content in excerpt field in loop

I am sure this has been asked before, but I can't seem to find the answer, although it seems simple enough. I have built a custom theme based on another person's design. He uses both the excerpt and ...