WordPress tutorial, How to add content after wordpress post. For unique identity of your blog you need to the some common words in every posts. If you want add some default text in wordpress editor.
How to add content after wordpress post editor
you can add following code in functions.php file.
add_filter( 'default_content', 'add_subscribe_in_editor_content' ); function add_subscribe_in_editor_content( $content ) { $content = "If you enjoyed this post, make sure to subscribe to <a href='http://feeds2.feedburner.com/wordpressapi' target='_blank'>my rss feed</a>."; return $content; }
using above code subscribe code will be added in wordpress editor.
Here is some very useful articles which is useful for modify the wordpress editor.
Add Buttons to WordPress wysiwyg editor
How to hide the wordpress visual editor and HTML editor
How to change the Visual Editor Font Size wordpress without plugin
This is great tip for adding the content in wordpress editor
Hi — I’ve been searching for couple days for an answer to this and hope you can help. First, the above code works without a hitch. My question: How can I apply this to only ONE type of whatever?
Specifically, I have a custom post type, Recipes, which is the only place I want default text. I’ve tried what little I know, like putting a conditional
if(is_singular(‘Recipes’)) {
around the function. No go. Is there a way to do this?
Thanks, Mike