The simple way to do this is to define the height/width in CSS of a container, and then apply a trim on the excerpt.
To change default excerpt length add this to you functions.php
function new_excerpt_length($length) {
return 100; // change this to how many any characters you want
}
add_filter('excerpt_length', 'new_excerpt_length');
Manually controlling the excerpt
How to control manual excerpt length?
Outside th loop
Using wp_trim_excerpt to get the_excerpt() outside the loop
The same filters can be applied to the content, but the excerpt suits this better.
Related Posts:
- Replace full content with an excerpt
- How to have a “clean” post content, for excerpt and social networks sharing
- Hide specific content from excerpts
- the_excerpt() in content.php and get_template_part() in single.php
- Excerpt vs content formatting woes
- How do i configure my content to show full posts?
- How to show content for posts of a specific category only
- Display a paragraph in the index page that won’t be displayed in the single post
- How to Handle Distributed Development Workflow
- How can I clear oEmbed caches for YouTube on posts as they are loaded
- Recommended Books on WordPress for Management and non-Developers?
- Total word count for posts by one author
- Neither the_excerpt() nor the_content() works properly?
- Split content into multiple columns using more tag?
- Get Content From Blog Page
- Show content after the first and second paragraph
- Host wp-content on other domain, much like a CDN
- WordPress REST API – JSON “Rendered” Content Incorrect
- How do I make certain areas editable?
- What server settings are required to import WordPress XML file
- append_content help
- Custom CSS for full post vs. excerpt (Content Options)
- How to limit post content and remove image caption from it
- Is there a way to trigger an automatic import of a WP backup on creation of a new WP multisite site?
- Site content not showing
- How to just show first line of content
- Take excerpt of the content of the post and send it as the title to create new post
- Convert all youtube link to embed
- Change Content for Specific Page
- Output string using php printf
- content gets scrambled
- Conflicting post edit options under dashboard
- How to make search and replace in content through php
- Retrieve a specific number of words from post_Content
- Is there a way to show only the text editor
- How to make author box like this & add after every post?
- Hardening wordpress: wp-content file permissions?
- same wordpress, 2 domains
- Error when adding excerpt to the content through functions.php
- How to retrieve text only from a post using WP CLI?
- Doctype printed on the page content
- Images are searched in the wrong path
- Export + Import = wrongly duplicated content
- What is the precendence of item types within WordPress
- Problem with content – not loading
- Content not shown on some older browsers and mobile devices (SGS3)
- The_excerpt() doesn’t parse – how to change that?
- the_content() returning null in one category only, even though there is content
- tabbed content box with different tabbed background images
- Split the_content into two parts
- add share buttons above my posts without plugins
- Body-only page for a 2-page form [closed]
- Simple Math Quiz or Captcha to hide whois query form
- highlight specific text in the content box
- Filtered content appears in the excerpt
- qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]
- matisse theme show excerpts not whole content
- How to Remove HTML Elements from Post Excerpt?
- Related post not showing table of content
- Printing first line of content in wordpress
- Custom slugs for Each Tab
- Using Elementor to get dynamic content for wordpress on a predefined theme
- Display Full Content Instead of Excerpt
- Trying to modify content.php
- mixed content missing from wordpress media
- Open content directory help!
- Need help with invisible content block
- Is it possible to remove the content editor (RTF field) for a certain user / role?
- Excerpts not showing on main page
- preg_replace style attr in $content and Editing post_content before saving
- Retrieve content of page by URL Parameter
- Nothing appears using get_the_excerpt() in category.php
- The post content just showing up text
- I am not seeing any content within WordPress after migration?
- Need help for showing same front content page, search page and portfolio post page
- Wp Some Pages content Not display in editor after move live server
- to get a little more content after ‘read more’ inside loop
- Put teaser content, more-link and full content in different divs if existing… Possible?
- Add video tag to youtube link fron content
- How to embed PDF files inside content without media_send_to_editor?
- get_the_content within foreach not the loop
- Visual Editor not working for user on multiple computers
- Migrate bbpress content to posts
- Where to place landing pages or files inside wordpress?
- Get content or excerpt of top rated votes @GD-Star Rating? [closed]
- How can i show only 30% of the “the_content(“More…”)”?
- Built-in Method to Extract Embedded Video from Content
- How can I add more code to this?
- Best way to modify content from index.php to single.php?
- Is it possible to set the upload location to a different server?
- How can you find and replace text in wordpress files on localhost xampp folders?
- Display content based on an event
- Iframe only visible after log in
- Scroll over to get definition [closed]
- TwentyThirteen – Footer overlapping content [closed]
- Post content not showing
- Content disappearing when trying to edit
- How to use str_replace() outside the loop?
- How do I edit the data/content inside a wordpress theme?
- styling the contents