Here’s my suggestion… while I would usually give you a suggestion using the_content, I don’t know how this code works into the rest of the theme. So a quick, simple, and dirty fix would be to change the length to a crazily high number. If you don’t like that answer, I’m sure somebody will respond shortly with an answer using the_content. Until then, try this:
// Sets the post excerpt length to 40 words (or 20 words if post carousel)
function ss_framework_excerpt_length( $length ) {
if( isset( $GLOBALS['post-carousel'] ) )
return 12000;
return 12000;
}
add_filter('excerpt_length', 'ss_framework_excerpt_length');
Related Posts:
- How to change the case of all post titles to “Title Case”
- Dynamically add id to heading tags
- Confirmation box when submitting post for review
- Ajax Load More Posts in Category Page
- Publish pending article from front end with a button?
- List latest posts in WP-Admin
- Update all posts automatically when using post_meta
- Restrict users from editing post based on the age of the post
- Change slug with custom field
- Restrict access to post if it is currently being edited
- Getting an alphabetic post list with two letters onclick on letter
- Create new category upon save based on post information
- which action to hook to in order to perform post-publish action
- Strange switch_to_blog() issue
- POST from jQuery to PHP
- Search widget breaks when using multiple loops?
- $post object is null
- Advanced Custom Fields – Storing array value for further usage
- Function to show random posts from a category
- str_replace the_title(); blues
- Accessing post->ID outside of the loop for listing child pages
- how to set beforsend option in wordpress ajax methods
- Display post category in foreach loop with category link
- WordPress Custom Fields (Checkboxes with multiple values)
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Most liked page not displaying posts
- How to make number of blog posts a custom field?
- Creating a post from data returned from HTML form
- List authors with the last post title and order by last post date
- Display post category in foreach loop
- Page template is accessing the incorrect posts?
- Can’t get full post title if there a spaces in title
- Get post meta retrieving wrong value
- Adding a user’s ID behind the tag ref link address
- How can I remove the first two words and shorten get_the_title()
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Dark Bar at the top of wordpress page can’t be seen?
- How to add PHP code snippet to all Post pages?
- How to display only one category in a custom post type?
- Display message depending on capability outside loop
- Limiting the amount of posts retrieved by the loop
- Hide content from Post Preview
- How to get the next and previous image title from attachment or gallery?
- displaying the categories post
- Adjust the order for returned posts
- How To Use Custom Fields With .mp3 Links
- Defining ‘last’ class on foreach blog posts
- Categories Listing and Highlighting current category item
- A better code for no post format?
- Help Combine These Two PHP Codes
- How to limit the number of results for all query_posts on mysite
- Show a Category Specific Info Box
- How to get all the terms of a post
- Get first comment link on the post itself
- User driven content problems
- How can i retrive the movies, trailers, news in a single page using search
- How can I create a menu items from meta box based on users input
- Older entries link within a category page
- Remove read more
- Insert new post for each user infinite loop error
- List direct children of page
- Unable to get posts with category on my page
- wordpress radio button on single post page
- How *not* to show the last post on the latest posts list
- Create post from form with image
- Exclude a ‘portfolio’ custom category?
- Display a custom field rating system in the front end
- get value from post to sidebar
- Echo author slug in post edit page
- Adding a content rating system
- How to set a min number of words for a blog post
- How can I replace WordPress standard process of editing posts with making WordPress use a custom page? [duplicate]
- Post’s “Read More” redirects to wrong post
- Add the description field on the attached media
- Search by post title and content in wp_query without order
- How can i display gallery shortcode output under Post text
- Hiding Draft Post In Admin
- Exclude category from
- How to limit posts by category
- Display posts from a different website on Genesis Responsive Slider
- How to create a post using REST API with sending data as a JSON body?
- 404 on paginated blog pages
- Print all the tags from a custom post type Please
- Loop through categories and display posts title under each dropdown
- Display tag image in post using Taxonomy Images plugin index.php
- Blog page not working
- Get post id in a function when edit/add a post
- Words must be included and restricted words in new posts
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- WordPress Loop – Next 3 Posts
- What is the filter or hook to add admin controls to posts on the front end?
- import mailchimp newsletters into wordpress [closed]
- How to display Common posts from specific Tag & Category with Shortcode
- wp_get_object_terms returns only Uncategorized on first publish
- Display multiple custom taxonomy values on single custom post types page?
- How can I get the media inside a post?
- how do I get a specific post from a post with a subcategory in WP
- Is it possible to change post id for an already added menu item in WordPress?
- List blocks created by a specific block plugin
- WP Bakery Load More Button loads the same posts