Use the_excerpt();
wordpress function to show only text. That function will filter out some html tags such as <img>
, <a>
. A useful alternative to show only plain text.
Note –
The
the_excerpt()
function internally usesget_the_excerpt()
to get excerpt and return a new string by filtering tags such as<img>
,<a>
tags. It also wrap that string into<p>
tags.
Related Posts:
- Check if the user has explicitly set an excerpt
- How to override function in functions.php of parent theme?
- Show Video in Excerpt
- When is wp_trim_excerpt() called?
- Stripping shortcode from custom excerpt function
- Remove images from get_the_excerpt
- Custom page template how to check is_page from functions.php?
- display public excerpt for private post
- get_the_excerpt() not returning anything when post has no excerpt
- Allow latex in wordpress excerpt
- Custom excerpt legnths for specific pages
- When to use an if statement after get_posts?
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Using “Read More” link with custom excerpt
- How to display post content instead of excerpt
- Using Schema with `the_excerpt`
- Create a new query in function.php to filter blog posts
- show first 3 thumbnails of posts in different sizes [closed]
- Custom Post excerpt not working correctly
- Limit length of first excerpt in the loop
- new_excerpt_more link not working properly
- Excerpts are not displayed by a shortcode on category pages
- How to display retweet count and likes in the meta above the excerpt
- Setting a default text for excerpts of a particular category
- Remove links from the_content when using filters wp_trim_excerpt
- Excerpt for pages not showing
- Test if a post exists by category and date
- Turn get_posts as string into an array for use in theme admin options
- How do I pull excerpts from pages?
- WordPress Excerpt – How to remove the first link using functions.php
- Strip div From Excerpt
- How to change value of variable in theme file with functions.php WordPress?
- first paragraph of the_content as meta description
- How to use get_posts() function in functions.php
- Adding Read More to Custom excerpts
- Limit number of characters in different excerpts
- the_excerpt function not showing image
- Exclude admins from query get posts
- Appending „read more” to the excerpt conditionally
- Hide disclaimer from summary excerpts
- same get_posts function works diffrently in tag.php and functions.php
- How to make an If Else on Excerpt Filter
- How to exclude posts with empty and non-existent relational custom field with meta_query?
- Remove Featured Images from Posts Older Than a Certain Date
- getExcerpt: Make ellipsis appear only if character limit is reached
- need help with ‘… read more’ excerpt in functions.php
- Excerpt length: get 2 paragraphs
- Check if excerpt is empty at loop-portfolio
- Can’t change excerpt length and more tag
- More link – not text
- How to add an excerpt and read more link to a page?
- Adding a filter to my posts
- Excerpt – First Sentence & Read More
- function to show youtube videos within excerpt – if condition and apply_filters
- Remove Actions/Filters added via Anonymous Functions
- Programatically add options to “add new” custom field dropdown
- Use ‘add_theme_support’ instead of ‘add_custom_image_header’ In WordPress 3.4
- Replacing select2 in admin backend for all selects
- Override a class function to include a custom template
- How to auto-update child posts whenever the parent post is updated?
- I created a child theme and it doesn’t work for some of the css files
- modify a function filter
- Accepted arguments value in hook functions
- Best practices for multiple Custom Feeds functions
- Print Post Parent Title
- Shortcode pagination not advancing
- translate the_title() with .po & .mo
- custom rss templete
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- How to construct function for applying filter?
- WordPress on AWS Auto scaling and ELB giving 503
- is_author(get_current_user_id()) returns false when author id and user id match
- unnecessary request call for js and css after calling wp_dequeue_script
- Custom HTML markup
- Functions Error: Impacting Galleries
- How to use author meta in shortcode?
- How to cut off question mark in url with functions.php
- How to rewrite wordpress search to work on specific category
- Theme JS is available but theme CSS isn’t
- Genesis Framework: How to exclude a specific author from archive custom loop
- How to Add Shortcode to html img code?
- How to create a shortcode out of a php function
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Insert function insde body tag
- Does WordPress has an automatic link parse function?
- Conditional custom menu?
- What function actually renders the wp_admin_bar ? How can I call it?
- redirecting a URL if accessed directly
- What is wp_get_post_tags for media tags?
- How do I trigger WP CLI DB export using a PHP function?
- WordPress does not load jQuery
- Redirect specific author posts to another url
- How to retrieve image IDs from shortcode content?
- WordPress – Custom Nav menu for logged in users – Shopkeeper theme
- Change post count on tag/terms pages to 10
- How to use if (is_page_template (”))
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Fatal error after changes to functions.php, even with original file
- update_post_meta after form is submited