Actually you don’t need a plugin to do this. Just add a simple function to your functions.php file:
function my_content($content) {
$content="My content before post" . $content . 'My content after post';
return $content;
}
add_filter('the_content','my_content');
If you don’t want additional content to appear in your feed, use following function:
if( !is_feed() ) {
function my_content($content) {
$content="My content before post" . $content . 'My content after post';
return $content;
}
add_filter('the_content','my_content');
}
Related Posts:
- Manually set global $post vars with an ID, in order to use template tags
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- How to prevent a post from being deleted?
- Limit access to posts/pages by user roles
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- How To Ignore a Filter On Applying Filter the Content In a Function
- publish_post hook isn’t working for scheduled posts
- How to get posts by content?
- Plugin for changing a post’s category based on it’s post date?
- WP get_permalink Return Wrong URL
- Fastest way to loop through all posts?
- Edit/revise option for authors to suggest improvement to posts [closed]
- post expire after x days
- Action on post publish
- [Plugin: Posts 2 Posts] How does it work?
- Set attached to state
- Use plugin or custom post type for game score functionality
- Tag link suggestion plugin
- How to add new tabs in post.php
- Collaborative post submission [closed]
- Bulk Image Uploader to create new post from each image [closed]
- Display comments of users on single page
- Using the “Latest posts” feature on a different site
- Post query – show posts from specified day and month and whole years
- Is there a way to order posts and custom post types as one group?
- How can i list random post from multiple category?
- Support for simultaneous editing
- Accessing post’s meta data based on user’s click of a post
- View Private Published Page with URL Code (no login required)
- The problem with WordPress Importer
- Solutions to repost categories into multisite blogs?
- Is there an easy way to flag posts in the admin area?
- finding whether request is for post, and post id
- Display post lists in 2nd paragraph
- Matching Chapters to a Custom posts [closed]
- WordPress display breadcrumbs using Yoast plugin [closed]
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Excerpts on category page
- External RSS feed to WordPress Portfolio
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Display wordpress post’s in popup?
- Would Gutenberg be considered a PlugIn?
- pagination on data fetched using SQL query
- How to delete all trashed item in one-go
- Import Instagram post to WordPress blog post
- wordpress content .php file in an iframe’s src in a wordpress post
- Making my plugin create a page?
- Don’t publish/update a post when a plugin finds errors in custom fields
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Moving FB comments at the end of page
- Function added to hook “new_to_publish” not executing – custom plugin
- Creating an admin meta box to save post as pending
- I would like to remove date display on photo preview
- Change website directory safely to add a static page on startup
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Custom Template for wordpress cpt plugin
- Get data from wp_posts of mysql in to variables of wordpress-php script
- How can i summerize posts or news automatically in word press site?
- WordPress “Add new tag” button is not working
- Problem with ajax plugin for refreshing posts
- Add posts from other WordPress blog to the current one
- Link Posts to External URL
- How do I allow users to supply a photo/image to be used instead of the grey/white silhouette?
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- WordPress hide post from custom post-type on a single page
- Show post object of any page in frontend
- Trying to add a new feature in my wordpress website
- automatically set random featured image by category in wordpress on post
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Pagination (including title of each page) in a post for a long posts
- Failed to load resource: the server responded with a status of 500 () post.php
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Include post_date in search
- Add Filter to get_next_posts_link
- WordPress Dashboard organize posts based on categories
- Add new post using a page inside the website
- Trending Tags based on post views
- Related posts popup
- Find And Add Category to Posts
- Retrieve post thumbnails
- WordPress ultra slow if I click on posts?
- Get page type to display content
- Insert data in custom table during new post creation
- Capturing POST data
- Most visited posts
- Get a submitted value from front end post form for single template
- Automatically set posts to NoIndex depending on category?
- Notification When Post Approved
- Windows 10 Printer that Sends to WordPress [closed]
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- How to customized post slider layout in elementor wordpress [closed]
- How to export post tags from wordpress
- Show WooCommerce products based on query parameters on redirect
- Getting 400 Error in wordpress website
- is_singular() in mu-plugins not working
- WP galleries in posts after import. How do I do it?
- Difficult case to solve – Select + select = result(related data)