Wordpress Help

gpgip

Junior Member
Joined
Jun 25, 2009
Messages
182
Reaction score
62
Hey i have 149 post on my blog and i want to add something to each of the post at the sametime, ive looked around but i cant find out how, can someone tell me what to do or if there is a plugin that i need to download to do this...?

thanks in advance...
 
Hey i have 149 post on my blog and i want to add something to each of the post at the sametime, ive looked around but i cant find out how, can someone tell me what to do or if there is a plugin that i need to download to do this...?

thanks in advance...

you want to add something at the beginning or the end of each post?
 
you want to add something at the beginning or the end of each post?


yes well i just have a download link i want to add to all the post at the same time
 
Add this code to your theme functions.php

PHP:
function bottom_of_post($content) {
$content.= "<a href=\"http://thelink.com\">link title</a>\n";
return $content;
}
add_filter('the_content','bottom_of_post');
 
Back
Top