Try this:
if ( has_excerpt( $some_post_id ) ) {
// Do something here?
} else {
// Or here?
}
References:
Related Posts:
- 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
- get excerpt without images
- Allow latex in wordpress excerpt
- Custom excerpt legnths for specific pages
- 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`
- 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
- 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
- Adding Read More to Custom excerpts
- Limit number of characters in different excerpts
- the_excerpt function not showing image
- Appending „read more” to the excerpt conditionally
- Hide disclaimer from summary excerpts
- How to make an If Else on Excerpt Filter
- 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
- Why use if function_exists?
- Include files in child theme functions file
- How to get woocommerce inventory status [closed]
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- Is it possible to maintain image aspect ratio when scaling images?
- How do you permanently remove default rewrite rules from the wp_options table?
- Can shortcodes contain conditional statements? Even without them my shortcode renders blank page
- How to override WordPress registration and insert an auto-generated username?
- update_post_meta for custom field not working upon form submission
- how to get and display logged in user’s recently read posts
- Add a new subscriber role using a function
- Why functions.php file is called 8 time for just one page load?
- How to set the jpg image compression for specific thumbnail sizes?
- Function to auto-set a featured image that is already in use
- Delete pages and Create default pages for all new network sites
- Post thumbnail relative link and HTML modify
- Find first image on paginated post for Pinterest
- Generating rel=prev and rel=next only on wordpress categories
- How do I get a child theme to load scripts from the parent theme?
- Access / Filter block variations in Gutenberg, in WordPress 5.6
- example of build_query function?
- Avoid loading css from parent theme
- How to hide unused profile fields?
- async javascript and css for wordpress
- WooCommerce – Want to show multiple currency for a single product [closed]
- How add various functions within 1 conditional?
- Disable auto-resizing of uploaded images, but only for certain filename
- Add to cart php not working [closed]
- Create cron job for update translations automatically
- Login Redirect if Logged in from Specific Page
- Override the function twentytwelve_scripts_styles in a child theme
- Custom taxonomy widget in admin area
- What is the Difference in bones_comments() and comments.php
- Do I need to use wp_reset_postdata for my function?
- Split Media Queries in different files!
- how to make has_block() see inside blocks too
- add_theme_support( ‘title_tag’ ) is not showing title on index.php
- Tracking the number of shortcodes for a list?
- remove edit link only for published post and pending post
- When are the user meta fields created in the database? Admin vs Woo API REST
- is_product_category(‘Services’) not working
- How to automatically add counted number to navigation menu items?
- Insert Modal on user first login
- Correct way of Enqueue self hosted fonts in sass project
- function syntax is off,
- Change category checkbox into radio button [duplicate]
- How can I include user meta information in the resulting array of a WP_User_Query?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Show the online status of the current post’s author
- How does child theme functions.php work with parent theme functions.php? Is it like CSS? [duplicate]
- restrict access to specific urls on a specific period of time
- Need a functions that adds (adm)/(mod) if current user is admin/moderator right after their username
- Add title & subtitle to shortcodes
- clickable title of 2 post on mainpage USING functions.php
- Custom Post Type Search
- WPDB query suddenly not working