need wordpress after post plugin

Faiz Muhammad

Newbie
Joined
Jul 12, 2011
Messages
11
Reaction score
1
hi i m looking for a plugin which can provide me a box in which i can put html code and when ever some one view a single post than my added html code show there after each post , is there any plugin which can do so plase suggest me one if you know.
 
Just click the html tab when you're adding a post and paste the html code below whatever content you have above it.
 
Just click the html tab when you're adding a post and paste the html code below whatever content you have above it.

He must already know how to do that.

I think he is looking for a way to automatically set html content/shortcodes to show on all posts, and update all posts by only editing it from one place instead of going through each post. Imagine if you had 100's of posts.

Also if you are automating the posts publishing - a plugin like that can help you to automatically place your shortcodes/html inside the posts without doing it manually. It might even be possible to add the html/short codes to the theme so that it posts along with the content.

I could be wrong but, maybe you could clarify OP.
 
Last edited:
Code below only adds the extra html to new posts.

If you don't want this extra html stored in the database, but instead only printed to screen, you should use 'the_content' filter, instead of 'content_save_pre'

To use, edit where it says 'Here is your Html', save it to a php file named add_post_content.php, put it in the plugin folder, then activate it.

Code:
<?php
/*
Plugin Name: Add Post Content
Plugin URI: Icantpostlinks
Description: Simplest Plugin EVAR
Author: Mark Fuckerberg
Version: 1.0
Author URI: Icantpostlinks
*/


function add_post_html($content)
{
	return $content . '<h2>Here is Your Html</h2>';
}
add_filter('content_save_pre', 'add_post_html');


?>
 
Last edited:
newmoney told exactly what i want to say
i m not a programmer or a php expert , i will try the post ender as suggest by joeyblogz
 
quick adsene is another one which do same i found , i dont put adds at those postion istead of adsene i put my html code it work cool
 
I used "post layout" and "header footer" plugins for automatically adding code, content, ads what not to every post or page. Ideal solution for ABers.
 
Thanked and rep+ for this useful code.

But will it accept shortcodes here instead of html
"add_filter('content_save_pre', '[Add_Shortcode]');"



Code below only adds the extra html to new posts.

If you don't want this extra html stored in the database, but instead only printed to screen, you should use 'the_content' filter, instead of 'content_save_pre'

To use, edit where it says 'Here is your Html', save it to a php file named add_post_content.php, put it in the plugin folder, then activate it.

Code:
<?php
/*
Plugin Name: Add Post Content
Plugin URI: Icantpostlinks
Description: Simplest Plugin EVAR
Author: Mark Fuckerberg
Version: 1.0
Author URI: Icantpostlinks
*/


function add_post_html($content)
{
	return $content . '<h2>Here is Your Html</h2>';
}
add_filter('content_save_pre', 'add_post_html');


?>
 
Last edited:
Back
Top