You are using the wrong filter. Depending on how your theme is built, there may be two solutions.
-
If the theme uses the
wp_trim_excerptfunction, the
excerpt_morefilter inside that function will only be called if
there is no excerpt passed to that function. At the end of that
function there still is thewp_trim_excerptfilter that you could
use to append anything to the result. -
If the theme uses the
get_the_excerptfunction to echo
the excerpt there is a filter with the same name that you may use.
Both solutions may work at the same time, so don’t overdo it.
Related Posts:
- Get excerpt from $post->post_content
- How to use the_excerpt in a filter hook?
- add_filter on “the_excerpt” only works when post does not have excerpt
- End excerpt at the end of the sentence
- get_the_excerpt() with fallback like the_excerpt()
- How do I filter get_the_excerpt() but keep all of its functionality intact?
- Buddypress: Edit activity when new blog post [closed]
- the_excerpt filter with an empty excerpt
- Access get_the_title() from ‘excerpt_length’ filter
- Give “Read More” precedence over excerpt() word count
- How do I override the_excerpt so that it will display full content?
- the_excerpt filter doesn’t work as expected
- Excerpt is being added above the content, but it should be after it
- run shortcode in excerpt of single custom post type
- apply_filters(‘get_the_content’, $content) + Except
- Trimming a custom field to a length
- Adding html banner to posts
- Apply wordpress filter checking category
- Add Filter – Pass Variable (PHP < 5.3)
- Filter Post Title without affecting screen-reader-text
- Create different flavours of excerpt
- Cutting off excerpt with first sentence
- Auto-generated excerpt with shortcode and read more button/text link
- Read More in the actual excerpt
- is_page_template() doesn’t work with excerpt_length filter
- the_excerpt() does not work with has_excerpt()?
- get_the_excerpt on mobile still displays continue reading
- Custom excerpt_more filter not working when tag is present
- Why does using excerpt_more filter change link location?
- Disable emojicons introduced with WP 4.2
- add_action(), add_filter() before or after function
- Remove classes from body_class
- wp_headers vs send_headers. When to use each?
- Filter any HTTP request URI?
- How to appending to the_content using add_filter with custom post type?
- Why is javascript allowed in my post content?
- Is it possible to filter comments in a post so a user can only see the comments they have written?
- Where to hook into post content?
- Adding a filter to qTranslate to change display of language chooser
- What hook do I use to edit the post statuses option in admin?
- Check if a filter or function has been already been called
- Custom Rewrite Rules Not Sticking
- Filter Widget Title Wrap
- Customizing WordPress the_title with add_filter
- How can I send data to admin-ajax via JS Fetch?
- Disable resizing of gif when uploaded
- How to change Woocommerce breadcrumbs content?
- Detecting Embed URLs Within post_content
- How can I display image metadata?
- I’m using a filter to remove the tags auto wrap, but there still wrapped elements?
- How to prepend text to the_content, but after img/shortcode
- How to enable visual editor when editing comments on the dashboard?
- Format content value from DB outside of WordPress filters
- Can’t change the title tag with wp_title filter
- How to filter ‘post_gallery’ after all other filters/plugins etc
- Can’t get wp_title filter working in twenty sixteen child theme
- add_action uses ‘echo’ add_filter uses ‘return’, why?
- Cron schedule interval through plugin options?
- wpmu_signup_user_notification filter not working
- Filter oembeds tags to modify iframe attributes
- Removing labels and tag on WordPress’s default login form
- How to add data- attribute to tag
- How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]
- Making a class available via actions filters
- How to check a filter are applied
- Add $more_link_text parameter to the_excerpt()
- How do I add a listbox to the TinyMCE editor?
- How to remove google font in WordPress for only single page?
- Remove tags from the kses filter
- Overwrite default WordPress wording
- Why anything done on comments_array hook gets reset?
- How to add a class to Tag cloud widget link?
- How to get all the predefined do_action() calls from an active theme
- Is there a get_post(s) filter that can alter/replace the output completely?
- WooCommerce Variable Product Price – Where is “From” text generated from?
- Using ‘posts_where’ on a query with a custom field
- Wrap h1-h6 in a div
- add filter login_redirect does not contain original requested redirect
- get_header and hook avoid normal call
- How to add numeric slug for child page in WordPress 5.9?
- Dropdown filter in custom posts
- Modify WP_Post before processing
- add_filter does not work as expected
- Custom Login Errors and variables I can use
- When to use add_action when registering/enqueuing scripts
- Is it possible to use multiple spaces in title?
- How add a group by to the query used by the media library?
- Create Page Template by hook programatically in Functions.php in WP 5.8.1
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- How to properly modify WP Vary or any existing headers?
- How to remove medium size class in gravity form for input tag?
- Filter out comments with certain meta key/s in the admin backend
- HTML and custom field variable, inside variable
- WordPress custom admin notice still displays after wp_insert_post_data validation
- Run posts_where and posts_join only on the main query
- Add/remove CRON action depending on variable
- Access post ID in “content_save_pre”
- Gallery stripped from excerpt of post
- Custom sort orderby question
- add_filter not working inside if function