smraj,
try to use a filter. Use this code snippet. Place this in our theme’s functions.php file
add_filter('the_content', 'adddata');
function adddata($content) {
$pre_post_text="Welcome to my post!..........";
// only display this on single post pages
if(is_single() && !is_home()) {
$content = $pre_post_text.$content;
}
return $content;
}
Related Posts:
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How to add option box in “Edit Post” plugin API?
- How do I unlock a post programmatically?
- How To Ignore a Filter On Applying Filter the Content In a Function
- How to get posts by content?
- Publish Post After Click On A Link
- Action on post publish
- How use %like% in sql statement wordpress
- Adding Attachment Display Settings in custom media frame
- Execute a plugin only on post pages
- finding whether request is for post, and post id
- Display post lists in 2nd paragraph
- Redirect to another page using contact form 7? [closed]
- How to get all posts belongs to a user between a certain date
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Post status doesn’t update to ‘future’ every time?
- Delete data from custom table when deleting a post
- Plugin is creating posts twice
- How to get Recent Post From Each Category with Thumbnail?
- help intercepting save_post through plugin
- Is it possible to pin a post in second position from top
- Help to Create a Simple Plugin to make a post
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- How can I see $post object in frontend from functions.php?
- Allow members to create groups on my site
- add tags to wordpress post using REST API
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- WordPress Product Detail and catalog
- Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Get content and send to 3rd party
- Displaying friend’s posts only
- Get page type to display content
- Capturing POST data
- Custom feed parameters / Template overriding
- warning wp session
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Where the Nickname is being used in WordPress
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- How do I only load a plugin js on it’s settings pages?
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- How to create a Page alias in WordPress
- Adding dynamic section to WordPress
- Use functionality of 2 wordpress plugins
- Yoast SEO blocking/re-initialising longer running process
- Add Fields with Sub-Fields to WP Job Manager
- template_redirect not being called when using ajax
- Can WordPress plugins “Talk to each other”?
- Is there plugin to show recent posts from one website in the widget area of another?
- Is there a way to alter the order in which the plugins appear in the page?
- How to correctly detect accessing wp-content/uploads?
- How to create custom embed block in gutenberg wordpress
- How can sanitize $_FILES[‘haq_slider’] field
- How to trigger $_GET request within admin plugin page?
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- submit posts by unregistered users in wordpress
- Using a post-signup hook to get user details
- How to apply a patch via plugin?
- wp_remote_get() returns 403 while file_get_contents() does not
- How to pull email and name from Flamingo plugin
- How to set add question capability for author role in wp pro quiz plugin
- Which widget to use for display category post with view more? [closed]
- Unable to delete custom post types, confusion around capabilities
- Getting wp.me shortlink for wordpress custom post type
- where is the main file in this plugin?
- Insert Array in Plugin Database
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- Moving FB comments at the end of page
- Get data from wp_posts of mysql in to variables of wordpress-php script
- Structuring function with registration_errors hook
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Problem with ajax plugin for refreshing posts
- wp_query ‘s’ parameter does not work with WC_AJAX
- Monitor all the queriers executed by my website
- Allow a particular user to access a particular plugin?
- wordpress plugin add page when activate
- Add style to body based on url
- WordPress hide post from custom post-type on a single page
- Loading plugin script only on required page?
- Create survey that redirects to sidebar menu customized to answers
- Uploading images to custom table
- Changing author slug for a custom role without using plugin
- Plugin Version List not Shown
- How can I customize Easy Appointment plugin?
- How to change meta data(title, description) for current post?
- how to add custom css at top above all css file for specific url
- Provide http service by wordpress plugin
- Include post_date in search
- create web service for android app using wordpress website
- Web Application Framework Compatibility with WP Plugin
- Plugin loaded, but not running
- Merge custom plugins in one folder
- Filter EVERY category link with my plugin
- Undefined variable _POST
- Embed php code in custom field of a plugin [closed]
- plugin doesn’t retrieve data from database
- Display Any Field fromAdmin Panel in Frontend via Shortcode?