Questions tagged [excerpt]

Excerpts are short texts or summaries

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Relia Theme Homepage Articles Excerpt displays the current page excerpt not the posts being pulled

Help! Spent many hours on this: Using Relia Theme, for the Homepage Articles the Excerpt displays the current page excerpt for all three Articles, not the excerpts from the respective Articles (aka "...
0
votes
1answer
23 views

Is it possible to use words as starting and ending points of excerpt parameters?

I want to find a way for excerpt function to display exactly what i want inside a single post. the excerpt itself has starting and ending point as parameters to go and fetch the data. but what if i ...
1
vote
0answers
21 views

Exclude read more in the_excerpt

I want to remove "read more" in the next code: <?php the_excerpt(); ?> Is it possible to do in the PHP line directly or I need a filter in funtions.php? I am want to do one by one in PHP query ...
0
votes
0answers
41 views

How to display post excerpt in Avada's Featured Image Rollover?

I've tried this hook in my Avada Child functions.php but it doesn't work… I'm afraid that the class="fusion-rollover-excerpt" doesn't exists and I don't know where to add it. ?> <?php if ( $...
0
votes
0answers
15 views

How can I add category slug to excerpt

Please i saw this code online, the question is how can I add category slug to this code and comment count for each post excerpt <?php $cdRP = get_theme_mod('cd_recent_posts', '3'); $args =...
0
votes
0answers
5 views

I want to display post excerpt on home page [duplicate]

Hello I want to cap my post excerpt to display 20 words
0
votes
1answer
37 views

I want to show post excerpt and cap it at 20 words [duplicate]

I want to show excerpt and cap it at 20 words
0
votes
1answer
24 views

Only Show Excerpt After First 3 Posts

I'm using the template part below and would like to only show the excerpt after the first 3 posts. The first 3 posts are formatted differently as "header" posts and thus I'd rather not have an excerpt ...
0
votes
0answers
34 views

Populate excerpt field with total number of words of post

I found this function for counting the words in a post: function prefix_wcount(){ ob_start(); the_content(); $content = ob_get_clean(); return sizeof(explode(" ", $content)); } How ...
1
vote
2answers
88 views

Any way to get more space for editing post excerpts

Using latest WP with Gutenberg. The excerpt metabox is (as you'd expect) over in the right column with the Document settings. Is there any way to get it out of that column and into the main area ...
0
votes
0answers
18 views

How to show text near a specific word/tag/category?

can someone give some examples of code that I can use in the tag and category loop pages, which will give out the content near a word? Here is an explanation. The default function of the category and ...
0
votes
1answer
52 views

the_excerpt() is not trimming at <!--more-->

I am using the following code: <?php the_excerpt(); ?> This trims after 50 ish words, way after the <!--more--> I added in the post's source. This, instead, correctly trims out the ...
0
votes
0answers
35 views

Plugin to style post Excerpts

So, I have a site that is running Tom's WP Show Posts and I have it set to show the excerpt of a post. I am styling the excerpt with some preexisting WordPress CSS classes and using JavaScript to ...
0
votes
0answers
28 views

get_the_excerpt only returns one excerpt

Just starting with WP and my inexperience is completely showing. When I use the function get_the_excerpt(), it only returns one excerpt for the most recent blog post, and not the other ones. I am ...
0
votes
0answers
28 views

Add default custom excerpt that executes a shortcode

I'm trying to get a default custom excerpt for posts. I've got a shortcode that executes if it is manually entered into the WordPress post editor excerpt meta box. To do this functions.php has ...
-2
votes
1answer
46 views

Need to show post summary in sidebar

I need to show a summary of each post in the sidebar. Is there any way to do this?
1
vote
2answers
457 views

How to change / delete product short description in Woocommerce

How to change / delete product short description in Woocommerce I use $short_desc = $post->post_excerpt; to read the property but I cant change it with wp_set_object_terms($post->ID, $post-&...
0
votes
1answer
36 views

Cannot figure out how to add a read more link to a manual excerpt. Please help

Nothing I do works. I am using a manual excerpt and when I paste this code into functions.php the words read more appear but they are not a link. Why is this? add_filter( 'wp_trim_excerpt', '...
0
votes
0answers
27 views

Force user to write excerpt before saving post? [duplicate]

Is it possible, in functions.php, to force users by default to write an excerpt before they can save a post? And ideally, would it be possible to make this mandatory in only certain post categories?
0
votes
1answer
38 views

Retrieving post excerpt as a shortcode

How do I register a shortcode to add the manual post excerpt anywhere within the same post? Does this shortcode already exist in WP? Thanks!
0
votes
0answers
28 views

Customize Search Results Body Content

Is there a way to customize the search results page to show the original text formatting in the post_text_inner class as its seen on the original post or portfolio page instead of showing everything ...
0
votes
1answer
29 views

Appending „read more” to the excerpt conditionally

I wonder if anyone knows how to add an if to this function. I need the read more to only be added to the the_excerpt when the category is 429 function mywiki_trim_excerpt($mywiki_text) { $text = ...
0
votes
1answer
32 views

PHP Code in excerpt?

Is there a way I can add <a href="<?php the_permalink() ?>" rel="bookmark" title="Read more at: <?php the_title(); ?>"><?php the_title(); ?></a> in the excerpt manually?
0
votes
2answers
245 views

How do I disable excerpts on blogs and website

I want to disable the excerpt from showing in blog and entire website in functions.php file. This didn't work add_filter( 'excerpt_more', '__return_empty_string' );
0
votes
1answer
38 views

How to extract an excerpt from a specific page?

Is there a way to extract an excerpt from a specific page? I've created a child theme and enabled excerpts on the pages. I know how to extract all excerpts for pages... but is there a way to extract ...
1
vote
2answers
62 views

Why do I get the same excerpt for all items in my RSS feed?

I'm new to coding and know next to nothing. I've done a ton research on the web, and I foudn the following code to import an RSS feed and place it in my template. The problem is that while I get 10 ...
0
votes
1answer
116 views

Display Full Content Instead of Excerpt

I want to display the full page content rather than the excerpt in my child theme. If I make the changes to the parent, they appear on the site. If changes are made to same exact file in child, they ...
0
votes
1answer
26 views

Why in archive page doesn´t show read more button with excerpt?

in this page https://blog.despierta.org/page/3/ Last post is with excerpt. If my posts don´t have excerpt show read more If I add excerpt the button doesn´t show. In functions.php // Replaces ...
0
votes
1answer
60 views

Trying to modify content.php

I am trying to tweak the bootstrap basic theme so that it shows excerpts. It does it when using search but not by default. I am trying to figure out what I need to change on the content.php file. ...
0
votes
1answer
84 views

Strip div From Excerpt

I have the_excerpt() in a specific page, I need to strip a div and keep the text, but only in the excerpt of that page. I believe I need to create a function with custom excerpt, but I don't how to ...
0
votes
1answer
1k views

wp_trim_words() does not trim the_content() in WordPress

In my WordPress website, I want to show a short text of each blog_post on the custom blog template. I want to show a Read More button with a link to the post at the end so a user can click on that ...
0
votes
1answer
57 views

How to use limit post content on archive page in WordPress?

I am using the advanced_ads plugin on my WordPress website which allows me to create different types of ads including image ad, rich content ad etc. The plugin allows shortcodes usage for showing ads ...
0
votes
1answer
49 views

Change the number of excerpts displayed in search results layout

WP 5.1 TwentySeventeen (child) theme. _posts_per_page = 1 For search results I want to display 5 excerpts. Using this answer and this page I was able to do that but displayed excerpts are not from ...
0
votes
0answers
23 views

How to change the length of characters in Posts Excerpt in Grid on homepage?

Can anyone help... I have managed to change the excerpt length on category pages using this function uxbarn_custom_excerpt_length( $length ) { return 30; } BUT - what I need is how to change the ...
0
votes
1answer
37 views

Moved a website and excerpts don't work for old posts

I moved a WordPress website to a different host and all post excerpts stopped working in the blog list. When I make a new post they appear fine but doesn't show for the old posts. I peaked into the ...
0
votes
2answers
121 views

How can we display full post on home page rather than excerpt

I have a puzzle website where i am looking for the option to display full question on the home page rather than excerp. Just a note that questions are custom posts. Is there any way. Thanks
0
votes
0answers
249 views

Adding specific custom fields (images) to post excerpt

I am working on a simple user profile archive, using the theme "Atomic Blocks" as a starter theme. I am using one custom post type and several custom post fields to create these user profiles. The ...
0
votes
0answers
88 views

Automatic excerpt option is not working on latest post of a custom theme

I am using HTML blank template for a custom theme. There excerpt option is not working in the live server but in local server the excerpt is working. here is my code function html5wp_index($length) ...
1
vote
1answer
82 views

Excerpt using Read More Tag

How do I get the excerpt of a post that is using a Read More Tag? The documentation states that I should use the the_content function, but I don't want that. I just want the text. Furthermore, I don't ...
0
votes
0answers
317 views

get_the_excerpt() is not working as expected - returns wrong text

In my template's 'footer.php', I'm attempting to generate a list of the four most recent blog posts, showing the featured image, title, excerpt, and a link to view. The title, featured image, and URL ...
2
votes
3answers
936 views

How to display only the excerpt in the blog/posts page with Gutenberg?

I'm building a custom child theme using the Twenty Nineteen default WordPress theme as the parent. I added some text in the excerpt section available in the Editor as follows: But the full content ...
0
votes
1answer
376 views

Remove Default Read More Link in Manual Excerpt RSS Feed

I have a site that displays manual excerpts on the blog post page: https://teralynnchilds.com/blog. I added a custom read more link using the snippet found here: https://wpmayor.com/add-read-link-...
1
vote
2answers
40 views

Shortcodes in excerpts returning empty string

I got this code: function ntt_movie_shortcode($atts, $content = null) { return 'TEST'; } add_shortcode('ntt_movie', 'ntt_movie_shortcode'); The shortcode works perfectly on a single page, but on ...
4
votes
3answers
2k views

Generate a excerpt from an ACF-wysiwyg-field

I have an ACF-field, that gives an output like this: <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p><img class="alignnone size-large wp-image-48" src="http://...
0
votes
0answers
44 views

How to add excerpt and read more button to category archive page

I am finding it hard to add excerpt and read more button to my category archive page
0
votes
1answer
28 views

How to custom excerpt?

I wanted to make the excerpt only display second or third paragraph. I need to know. How can I make the_excerpt() only display second or third paragraph and limit the length of the except.
1
vote
0answers
186 views

Gutenberg is Adding Additional HTML Tags When Grabbing the Excerpt

I am running into an issue with Gutenberg where I want to display the excerpt of a post, even when the excerpt field isn't filled in. Usually the functionality of WordPress is when the excerpt is ...
0
votes
1answer
69 views

Excerpts not showing

does anybody see anything wrong with the code? It's not showing the excerpts. It it is supposed to show the first 55 words of the content. The site is this one. And this is the code: <article id=...
0
votes
1answer
36 views

custom excerpt is not being shown

I am trying to show custom excerpt using the_excerpt(). the full code is as follows: <div id="content"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(...
0
votes
1answer
409 views

Split the_content into two parts

I want to split the content of a post into two parts. The First part is in an <strong>-tag, it is like a excerpt and in the second part i want to display the rest of the content. But I don‘t ...