This has to work, Im using it in several projects:
add_filter( 'excerpt_more', 'my_excerpt_more' );
function my_excerpt_more( $more ) {
return '';
}
Just copy-paste it to your functions.php
.
Little bonus snippet that you might need:
add_filter( 'excerpt_length', 'my_excerpt_length' );
function my_excerpt_length( $length ) {
return 50;
}
This means that excerpt is 50 words long. Just modify the number to get different length.
Related Posts:
- How Display Posts on category
- How to customize posts in WordPress by using HTML and CSS?
- WordPress Shortcode and Dynamic CSS
- Multiple pages on one with different HTML
- Automatic Excerpt Not Working
- Minify HTML, CSS, JS with PHPWee?
- How to display a value from a radio button in the options menu in wordpress
- Shortcode content output but not in correct place
- An unwanted inline style is added to my body tag
- Show post in slider
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- Getting a specific post values to another div or modal
- how to remove metadata from the posts of my blog?
- Customize position of social icons in upme plugin [closed]
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Wrapping a Sidebar within
- Add Codepen animation as Preloader to WordPress
- How to show an entire post content and not also the excerpt?
- Where can I find the inline-css of my theme header?
- Menu Custom Data Attributes
- Highlight the links without using dropdown
- Remove   from the_excerpt
- Website completely messes up when logging out
- Link to page with posts of specific type
- Assign Custom classes to every Excerpt
- Displaying images outside the content
- how to changes mobile menu toggle breakpoint in WordPress
- Background image no longer fits to screen now that project is in php files
- WordPress Post Block Element not properly parsed with the_content filter
- Add other class content with reference class value
- PHP function for horizontal Woocommerce thumbnails and badges
- I can’t go to the page archive-{post_type}.php
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Drop down question
- WP Website is shown in HTML
- Can’t display anything through homepage text editor
- How to find and delete a menu item in php?
- WordPress Slider is not working
- How to display post meta bellow every posts
- how to add functions to my function.php using a child theme?
- Make a full-width wordpress page
- How to center all text body in single.php at once?
- Target a specific container to style on WordPress storefront theme
- How to include different html tags in the header for different pages?
- Displaying POST content with HTML tags and all
- user update profile for custom code
- PHP tag in post content makes wordpress go crazy
- Font-Family does not looks like how it should be [closed]
- Where to find the html for WordPress site? [closed]
- Automatically create a loop for post ID
- Show contact 7 form in popup
- WordPress – Image href for home menu nav not working
- How Can I Center the Logo in the Navigation Menu? [closed]
- featured post as div background
- Display pages from specific page template
- Trying to customize wordpress drop down categories
- Cant get theme to change footer color through theme customizer
- WP_Query not returning results
- Excerpt all post content Content Same Size without word cutting off
- Header location [closed]
- How do I link the side images?
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- How to create a container in php then customise it in CSS
- Custom HTML/CSS Theme into WordPress – SEO considerations
- Remove post image caption from post_excerpt();
- Add multiple HTML attributes to an Elementor button
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to create different templates for woocommerce single-product.php?
- wp_enqueue_style with style.php and WordPress functions
- Trying to make php run in a post
- Displaying theme options in css
- How to show part of the_content?
- Input data from email form not going to JSON file
- Show latest posts in a plain HTML website custom widget [closed]
- Hide HTML element (by class or ID) with PHP
- How to remove coupon dropdown feature
- Pagination on Custom Post
- Add html link in functions.php files of the theme
- Automatic excerpt is not shown with the_excerpt() command
- Handling PHP/HTML inside the output of a shortcode function
- Dividing the loop to style post differently
- Adding attribute to the post.php form tag in wp-admin
- Problem in replacing the_content with the_excerpt()
- Add css class to string
- How to use wp_ajax_set_post_thumbnail?
- Passing a value from an input field to a php function in WordPress?
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- WordPress recent post
- Show subcategory name selected in specific category woocoommerce
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- nested divs, classes for a grid in loop [duplicate]
- $post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?
- How to create a “Most Popular” & “Latest” TAB in WordPress