The excerpt must be used by the Theme. I don’t think it is. Use ‘the_content’ filter to append to the post. Excerpts are usually used in feeds and only by certain themes.
add_filter('the_content', function($content){
if(!is_archive()) return $content;
global $post; // This is the current output post
ob_start();
// Echo stuff to append to post here! (your link or whatever)
return $content.ob_get_clean();
});
PHP 5.3 Closure used. Extract function yourself aside for PHP 5.2.
Regards.
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
- 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?
- Excerpt – First Sentence & Read More
- function to show youtube videos within excerpt – if condition and apply_filters
- Order posts (across the whole site) by metadata date
- Disable visual editor on one specific page
- How to display random users with avatars
- Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?
- Different ‘WP_CONTENT_URL’ for different subsites in Multisite setup?
- Display WordPress Search
- Preferred Use of home_url()?
- Where does function_exists() look to decide whether a function exists? [closed]
- Clean-up script tags
- Make “sidebar template” the default template for new pages
- Refactor create_function
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- Attach parent category template to all subcategories
- Remove Font-Awesome MaxCDN Link & Load Locally
- How to remove howdy dropdown menu content
- Stop turning small dashes into longer ones
- How to get specified parent page title in my function
- Execute function after a post has been published
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Load Woocommerce and WordPress Functions Outside
- watermarking gallery items
- WordPress Shortcode function display outside of widget
- Get rid of the widget Item Class=”widget-item”
- Storing password (functions.php)
- Change menu based on page template via functions.php
- Why is it so hard to add a class to the tag in the sidebar widget?
- Adding theme option values as custom body class
- How to add a new image size and apply it to posts only?
- What is the correct way to include my new functions and scripts in WordPress?
- Perform function on publish AND save (not just save)
- add_menu_page() with variable function
- include w_thumbnail_src in function?
- Custom blog post summary on blog index page
- Ajax Form Issues using Lightsail (AWS)
- Unable to login after registration
- Remove the ‘category’ url for one category type
- CSS style and app.js not loading
- blank page with wp_get_attachment
- Parent category as WOOCommerce Categories widget title
- Change user role based on total number of items ordered
- Function stops working
- Rewrite rules and the permalink
- How to prevent multiple custom terms from being created
- revision id is one number behind – publish_post
- How to create a function to redirect a specified page to another page
- How To Get WordPress Categories Last Update Date?
- unregister_sidebar in child theme not working
- Print all inline styles to head
- Function to return custom post type titles from blog id 1
- How to request login for user but not for bots
- Custom shortcode not being included in content paragraph [duplicate]
- Display post_meta-by_key on product catalogue
- Which template file to edit to edit homepage in Mystile [closed]
- Does functions.php apply to every page?
- User’s Comments Number: Storing it in a meta field for different uses
- Show one post per author and order by custom field