Posts: 457
Name: Randy
Location: Northern Wisconsin
|
It does depend on your theme structure as for where to put the content.
Your posts are generated with single.php.
Your page theme is page.php
Many sites will use index.php for multiple purposes.
You would add these affiliate links manually after you see:
PHP Code:
<?php the_content(); ?>
However, IMO, I would add that through hooking into WP because you could actually have multiple page templates, etc. Then it will be added to any content. Still a lot to manage.
Paste this code into your functions.php file.(You most likely have this file already in your theme. If not just create it.) Obviously, put your link info where I have "Affiliate links".
PHP Code:
function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= '<p>Affiliate links here</p>'; } return $content; } add_filter('the_content', 'add_post_content');
(from this source)
Last edited by racer x; 05-28-2010 at 09:05 AM..
|