Questions tagged [excerpt]

Excerpts are short texts or summaries

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

How to display only article titles?

In https://www.problogger.gr/blog/ how can modify theme to remove Excerpt and read more button from all posts in /blog. I want to show ONLY post title. I’ve tried this p.more-link { display: none !...
0
votes
0answers
29 views

Read More excerpt link on a post is not linking to the post itself

My Read More link on several pages (showing an excerpt of those posts) is not linking to the posts themselves when you click on Read More. It looks like it is a link and should do so, but it just ...
0
votes
0answers
19 views

Search Highlight comes with error on excerpt in search result

I'm not sure what's going wrong. I'm using a "search highlight" on my wordpress website. I recently noticed 1 issue when doing a search on my site. How to say? Hmm...For example, either post excerpt ...
0
votes
0answers
17 views

WPBakery Page Builder Shortcode Showing On Front Page For Post

I am working on a new site and am having an issue with the WPBakery plugin. I assume its a custom version of WPBakery, since it's marked WPBakery Page Builder by VisualModo, which is who my theme is ...
0
votes
0answers
11 views

Return the first paragraph that doesn't include certain characters

I'm writing a custom excerpt function. My posts start in various, but predictable, ways: Sometimes the first "paragraph" is a header (h3, h4) Sometimes it's a "byline" (By John Smith) Sometimes ...
0
votes
0answers
9 views

Find and print first <li> entry from Wordpress post in custom excerpt?

I want to create a custom excerpt for an education website. It has posts that contains and listing. I want to print the first child of ul and a first child of ol tag from the post. Currently, I ...
0
votes
1answer
19 views

Custom CSS for full post vs. excerpt (Content Options)

Is there a way activate "Full Post" via Custom CSS or any other way? Right now I am stuck with Excerpts on the Homepage and my Theme Customizer > is missing Content Options Here below is what my ...
0
votes
1answer
28 views

How to select a paragraph other than the 1st to be the post's excerpt?

My WordPress website has 3 paragraphs and one featured image in a post. How do I make the last or last before para to be the post description?? Are there any plugins to do that? Am already using All ...
0
votes
0answers
9 views

Adjustment of the text excerpt of the search

Is it possible to use functions.php to get a text snippet around the search term and not the first 55 characters of a post? I hope I made myself understood. I would like to receive a text excerpt (...
0
votes
0answers
22 views

What does excerpt depend on?

I wrote a post plugin for elementor page builder.Excerpt overflows to my country flags.How can I avoid the overflowing? On this website, except overflows: http://www.oneclick.deniz-tasarim.site/ On ...
0
votes
1answer
21 views

Create different flavours of excerpt

I have an understanding problem with the Wordpress filter approach. I thought that I could easily use something like the_excerpt() on one hand and create the ...
0
votes
1answer
45 views

Replace <p>-tag in the_excerpt

I want to replace the -tag around the_excerpt. Right now html-output looks like this: <p> ...content of the excerpt... </p> I want to achieve this: <h2> ...content of the excerpt......
0
votes
0answers
16 views

my custom author Excerpt description plugin doesnt work

i want to show that top authors with avatars and description so i need excerpt the descriptions. function.php: // Top Authors--> function author_excerpt (){ $word_limit = 2; // Limit the number ...
0
votes
0answers
164 views

Auto generate excerpt from ACF field on a CPT that does not support excerpt or content

I have a CPT which contains only 4 wysiwyg fields created with ACF. The CPT does not support standard WP excerpt or content fields. I would like the CPT to generate an excerpt automatically from one ...
0
votes
1answer
37 views

Remove figcation from excerpt

I am trying to customize my frontpage and currently i'm confused why i can't get rid of the figcation in the excerpt. As far as i know the_excerpt()should already remove tags and shortcodes. Just in ...
0
votes
0answers
16 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
28 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
1answer
25 views

Exclude read more in the_excerpt [closed]

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
86 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
17 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
44 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
30 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
39 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
126 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
20 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
59 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
41 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
30 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 ...
-2
votes
1answer
50 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
1k 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
44 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
33 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
98 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
1answer
32 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
35 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
544 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
51 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
70 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
162 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
30 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
97 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
124 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
3k 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
106 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
106 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
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
136 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
345 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 ...
1
vote
1answer
105 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 ...

1
2 3 4 5
13