DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Do you always insert the same text on all your posts, for exemple to tell people to subscribe to your rss feed? If yes, you should definitely set up WP to have it automatically inserted in the editor.

Really simple: Just open your functions.php file, and paste the following code:

<?php
add_filter( 'default_content', 'my_editor_content' );

function my_editor_content( $content ) {
	$content = "If you enjoyed this post, make sure to subscribe to my rss feed.";
	return $content;
}
?>

Save the file, and create a new post: The “If you enjoyed this post, make sure to subscribe to my rss feed.” text is already in WordPress editor!

Credits goes to Justin Tadlock for this awesome recipe!

One Comment

  1. how or where do I put in a little text in the comment section of my blog?
    if I want a little text saying something like “if you only write comment back? comments, your comment will be deleted!”

Leave a Comment

Your email address will not be published. Required fields are marked *