Thank you for all your help, especially @byronyasgur for your last suggestion. It helped me fix it.
I was using markdown as the input format for the content, and the first line was HTML comment which was not followed by a blank line. Adding a blank line fixed it.
Summary: The absence of this line caused the excerpt to be null. This blnak line did exist in my development system but not on the live system.
Markdown users beware of the need of blank lines.
Sorry for the noise.
Related Posts:
- Twenty Eleven home page show only excerpt
- How to call the_excerpt() with tags or the_content() as an excerpt?
- How to programmatically bring back “excerpts” field in post editor in WP 3.1+
- How to hide and content from auto-generated excerpts?
- the_excerpt() not showing manual excerpt for Pages
- Bold letters inside excerpt [closed]
- How to move the the_excerpt’s read more link to another div
- buddypress: how do i make the group description excerpt shorter?
- Disabling automatic teasers
- How to make the excerpt_more filter apply to the actual post excerpt?
- How to obtain a reference to the_excerpt() from custom loop
- Exclude read more in the_excerpt [closed]
- Custom get_the_excerpt() only works on first post
- excerpt() shows different result between remote and localhost(development environment)
- adding class to excerpt
- Get Post’s Excerpt Without the Wrapping tags and the Read More link
- Single.php the_excerpt loads same as the_content not loading read more line
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- matisse theme show excerpts not whole content
- restrain filter on get_the_excerpt to queried item in stead of current post
- How to make force_balance_tags balance comment tag
- Filter URL and shortcodes from the_excerpt
- Solutions for generating dynamic javascript / CSS
- Import media to online WordPress from local development
- How to add a checkbox element to attachments editor with example
- Auto get_header and get_footer on every template?
- What is the right way to include a wp-admin file in your theme?
- Nested comments ignored for max per page in wordpress
- Theme Check gives: Required: This theme doesn’t seem to display tags?
- Is it possible to use line break in theme description?
- How does WordPress decide what template to use as frontpage
- get_option function
- Override Current Theme Setting in wp_config.php
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- WP Gutenberg custom block – generate theme colors from SASS and use them in the inspector and php callback
- Which is the simplest theme for WordPress to use it as your base?
- “Cheatin’ uh?” error message on multple theme directories
- Is tag default in WordPress?
- “Display Site Title and Tagline” checkbox not working?
- Getting jquery to work with custom theme
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Why does WP recommend against custom favicon functionality in themes?
- What’s the best action to use when you want to do something only once per theme setup?
- Excluding a page with a certain name from wp_page_menu
- Widgets with groups / sub widgets? Widget in a widget?
- Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?
- Avada resources still loading from localhost after database migration [closed]
- No Appearance –> Header menu
- Add theme templates for child categories into the template hierarchy
- How do I create a custom partial / template?
- Internationalization and functions that use it
- How should I be handling my theme version numbering?
- Bootstrap card columns change images size
- Can´t access child theme´s scripts dependencies found in parent
- Prefix best practice, should we use framework name or theme name?
- The Content is not Wraping in tag
- Using page-id-{ID} from body_class() in local dev, versus live staging
- WordPress Settings API not saving options
- Custom image size vs CSS sizing
- Unique design inside a specific category’s url
- Rewrite the HTML markup of wp-login.php
- Making a WordPress theme based on twentyten
- Clearing dummy data before launch
- multiple html/css files for wordpress theme?
- Create new wordpress theme with no need update
- Add image URL automatically to custom field?
- content filter (add_filter) for category description?
- Theming media inserts
- How to update mark-up of a gallery block in a custom theme?
- wordpress script_loader_tag in function.php
- Host Private Custom Theme
- Why not works the search.php file?
- How do I make my terms for each product display via foreach loop? (woocommerce)
- WordPress Insert ads after every 5th post
- How to get custom logo with REST API instead of get_theme_mod();
- How can I change this SVG shape that’s generated?
- Can I set rest API endpoints from within a theme?
- Theme starter content translation is not working
- Adding a second logo next to the main one in header
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How to add an image to a theme page template in code?
- Looking to create an “update theme” functionality for a custom front-end dashboard
- remove_action(‘genesis_header’,’genesis_do_header’) hook not working
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- Breaking Categories Up into Individual Divs
- Different stylesheet for different pages not working fully
- Can I use WP Multi-site on a sub-domain with a different theme but use all the original site’s posts/pages?
- How to Apply Category Filter to Pagination
- How do I use the add_query_arg function in a template tag like previous_post_link?
- Strip HTML tags on custom code from the_content
- Get all Custom Post Types
- wpdb->insert adds too many rows
- wpalchemy repeating fields dropdown issue
- Does WordPress require that your submitted theme supports multiple menu levels?
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- Why does the first loop take arguments from the second loop?
- Theme layout for home page [closed]
- Is there any reason that other theme elements (such as nav menus) shouldn’t be within the loop?
- Is there any way to show child theme in theme detectors?
- WordPress search field won’t get wider