Questions tagged [excerpt]

Excerpts are short texts or summaries

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

Auto excerpts are not generating on Bangla language mode

Excerpt related functions like get_the_excerpt(), the_excerpt(), wp_trim_excerpt() etc. works fine in WordPress default language mode. When I go to the Dashborard > Settings > General Settings ...
0
votes
0answers
12 views

get_the_excerpt doesn't work with default items but works with my customs post types

the excerpt function not work in my custom post template using Wordpress default posts in the query loop, but they work fine with custom post type. I enabled the display of excerpt by checking the &...
0
votes
0answers
28 views

Display Custom Field Value Via Shortcode Inside Excerpt

I have the following function: function dessert_function( $atts ) { $atts = shortcode_atts( array( 'post_id' => get_queried_object_id(), ), $atts, 'dessert' ); return ...
0
votes
1answer
27 views

Show metabox value last post excerpt, title and link

I'm facing a problem I can't solve. I'd like to get the excerpt, title and link of the last post containing a particular meta-box button status. For example: I would like to retrieve the last post ...
0
votes
0answers
27 views

Error when adding excerpt to the content through functions.php

I am trying to add the excerpt from a specific post to the content. function add_2_the_content( $content ) { if (is_front_page()){ $custom_content = get_the_excerpt('some_id_number'); } $...
0
votes
1answer
31 views

Filter Post Title without affecting screen-reader-text

Let's consider this code: add_filter('the_title', static function ($title) { return $title. '-boom'; }); Works fine, and adds '-boom' near all the titles. But, I also noticed that in some themes (...
0
votes
0answers
11 views

Blog Excerpt not coming from the top of the post

When I post a link for my blog on a social media platform the excerpt that is displaying is not from the beginning of the blog. It is being pulled from somewhere in the middle. On a very short ...
1
vote
1answer
9 views

How to display excerpt post on hamepage and archive pages?

I am showing full posts on my blog's homepage and also in archive pages but the problem is, Now i have posted some long post and i want to show there only excerpt with read more button on hamepage and ...
0
votes
0answers
19 views

How to make force_balance_tags balance comment tag

I'm displaying a preview of a post/page/cpt using a 'work-around' that i found. This 'work-around' gets the post content, trim it and render the trimmed content with it's html elements ( links, images ...
0
votes
0answers
7 views

How do I delete the image information from the excerpt for the meta description?

I am working on a blog post and I have an image at the top of the blog post. Now, I am working on the SEO and the image's information keeps popping up as the "excerpt" in the meta ...
0
votes
0answers
12 views

Related post not showing table of content

I have squaretype themes and this themes use built in table of content. My question is how to change related post to show excerpt not table of content words?
0
votes
0answers
35 views

shortcode doesnt work on excerpt

my shortcodes doesnt seem on archive page excerpts.you can see an example excerpt: https://unit-test-data.deniz-tasarim.site/2011/03/15/ here is related code with excerpt in my theme files: archive....
0
votes
1answer
51 views

Get the automatic excerpt from a page created with gutenberg

The problem I have is im not getting the automatic excerpt (the_excerpt()) when I create a post with gutenberg blocks, If I put an image or something before the text it looks like gutenberg does not ...
2
votes
1answer
146 views

How to get excerpt correctly formatted

I'm using a theme that use the_excerpt() function to show the excerpt of the post. All posts have not set custom excerpt, so the_excerpt() returns a piece of post content. In some post first paragraph ...
0
votes
1answer
49 views

Empty the_excerpt() broke the_permalink() under him?

I have a problem. It is <?php the_excerpt(); ?> empty from gutemberg <?php the_excerpt(); ?> pull little part of content from post but first next <?php the_permalink(); ?> under is ...
2
votes
1answer
180 views

How to display links in excerpt? [duplicate]

I am not able to see how to display links within excerpts. A number of posts suggest to try something along the following lines, but I am not able to render links within excerpts. What do I miss? ...
0
votes
1answer
30 views

How to limit wordpress the_excerpt() dynamically

I'm trying to limit WordPress post excerpt and I've tried some ways to do it but all of them was not the stuff that I need, to say concisely I want to limit post excerpt with a number that I use ...
0
votes
0answers
11 views

Excerpt and blocks group

When using block group, the excerpt is empty, assuming that there is only content in block group. Is any way to fix this? Is there any way to return first paragraph of the content? Thanks
0
votes
0answers
26 views

How can I remove post excerpt including 3 dot and read more?

My theme is Pantograph Newspaper theme. From my theme option, I do post excerpt limit (0). But, one more post category hasn't the option to make it (0) excerpt. So here showing excerpt. I don't want ...
0
votes
1answer
22 views

Default excerpt for parent of a custom post type

I've created a hierarchical post type called mycustomposttype. Parents are created in the backend, children via gravityforms. Due to my theme setup, I would like all parents in mycustomposttype to ...
-1
votes
1answer
30 views

Excerpt – First Sentence & Read More

I am using this function to limit the excerpt to the first sentence... function hello_first_sentence( $string ) { $sentence = preg_split( '/(\.|!|\?)\s/', $string, 2, PREG_SPLIT_DELIM_CAPTURE ); ...
0
votes
0answers
92 views

Issue using ACF Flexible Content Sub Field for Excerpt

I'm developing a site where the blog entries will be made using ACF Pro / Flexible Content Fields. Because the post entry content will no longer be entered into the default content editor, WP is ...
0
votes
2answers
55 views

has_excerpt() not working inside wp_query

I am trying to check for an excerpt and if it doesn't exist then show the content but trimmed. Currently nothing is showing. <?php if (has_excerpt() ): ?> <p><?php echo ...
0
votes
0answers
14 views

Yoast highligh custom search result

Maybe someone in the WordPress community can help me with this. I am using Genesis with WordPress and I have created some functions with the help from others on the internet to make custom search ...
0
votes
0answers
22 views

Modifying the_excerpt to include link to post doesn't work for Latest Posts block

I've modified the the_excerpt() tag to include a Read more link as follows: function my_excerpt_more( $more ) { if ( ! is_single() ) { $more = sprintf( '<a class="read-more" href="%1$s"...
0
votes
1answer
202 views

Hook for changing excerpt content when excerpt not set

Title says pretty much all of it. I need a filter that I can use to change excerpt content for those posts that have no excerpt set. Now, I've tried both the_excerpt and get_the_excerpt, they both ...
0
votes
0answers
17 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
31 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
36 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
1answer
220 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
13 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
28 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
376 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
172 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
1answer
24 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
167 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
667 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
78 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
31 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
30 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
1answer
77 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
31 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 ...
1
vote
2answers
289 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
1answer
82 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
31 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
65 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
3k 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
79 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
36 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?

1
2 3 4 5
13