Can anyone suggest some good wordpress plugins that can dynamically insert HTML (Like adsense code) in the post? When I say dynamically I mean the html is not baked into the post. So it can be updated for all posts on the fly with one change.
Can anyone suggest some good wordpress plugins that can dynamically insert HTML (Like adsense code) in the post? When I say dynamically I mean the html is not baked into the post. So it can be updated for all posts on the fly with one change.
You don't need a plugin to insert Adsense into a Wordpress blog. The best it to use php includes and insert it into the loop. Then put your adsense into a external file i.e. ad1.php
The loop should start with <?php if (have_posts()) : ?>
Here's an example of the code:
Code:<?php if (have_posts()) : ?> <?php if ($wp_query->current_post < 1) { ?> <div style="display:block;float:left;margin: 0px 10px 0px 0px;"> <?php include("ad1.php"); ?> </div> <?php } ?>
Yeah, and you can edit the theme template code directly in your WP Admin area under the Appearance menu.
My forum signature is under construction.
bogart (3 February, 2012)
Bookmarks