Add to Technorati Favorites

Text Link Ads

…I also use it to add Google Adsense and other code snippets above my top post on this blog.

CG-InBetween by David Chait is a must have plugin for you bloggers that want to sprinkle adds between your blogs. All you have to do is install this plugin and add one line of code to your WordPress theme. From the author,

With a one-line addition to your theme, CG-Inbetween can then make it easy to add things like Adsense between posts. Or anything else. You can echo HTML directly, call a PHP function (like QuickPHP), AND/OR include an html/php file. And you can do so for every post in the loop, the n’th post, the Last post of the loop, or only for Single posts (and pages). Admin panel makes it easy.

The best thing about this plugin is that you can use it to create sort of a sticky post. I wanted to create an area above my newest post that wasn’t editable or commentable, and didn’t have the date posted, etc. Similar to a post, but missing those elements.

First you’ll need to install CG-InBetween. I’ll assume you know how to add plugins to wordpress.

After installing the plugin, you’ll need to add one snippet of code to your theme’s index.php. **Don’t forget to backup backup, backup!!** When adding this code, add it before (make sure you aren’t using the last positioning feature!) the post header/content rather than after it. If you do this, you’ll need to add one when specifying your inbetweens because the numbering system will mean ‘before post #x’ rather than the default ‘after post #x’. You may have to play with it a couple times.

Now when you create a new Inbetween via your WordPress Admin, put the code snippet between 1,2 and it will show above your top post. Adding code between blog posts 8, 9 will show between posts 7, 8.

This may sound confusing but it’s very simple to execute. Comment here if you need help. Have fun!

- MB

Trackback URI | Comments RSS

Leave a Reply

…I also use it to add Google Adsense and other code snippets above my top post on this blog.

CG-InBetween by David Chait is a must have plugin for you bloggers that want to sprinkle adds between your blogs. All you have to do is install this plugin and add one line of code to your WordPress theme. From the author,

With a one-line addition to your theme, CG-Inbetween can then make it easy to add things like Adsense between posts. Or anything else. You can echo HTML directly, call a PHP function (like QuickPHP), AND/OR include an html/php file. And you can do so for every post in the loop, the n’th post, the Last post of the loop, or only for Single posts (and pages). Admin panel makes it easy.

The best thing about this plugin is that you can use it to create sort of a sticky post. I wanted to create an area above my newest post that wasn’t editable or commentable, and didn’t have the date posted, etc. Similar to a post, but missing those elements.

First you’ll need to install CG-InBetween. I’ll assume you know how to add plugins to wordpress.

After installing the plugin, you’ll need to add one snippet of code to your theme’s index.php. **Don’t forget to backup backup, backup!!** When adding this code, add it before (make sure you aren’t using the last positioning feature!) the post header/content rather than after it. If you do this, you’ll need to add one when specifying your inbetweens because the numbering system will mean ‘before post #x’ rather than the default ‘after post #x’. You may have to play with it a couple times.

Now when you create a new Inbetween via your WordPress Admin, put the code snippet between 1,2 and it will show above your top post. Adding code between blog posts 8, 9 will show between posts 7, 8.

This may sound confusing but it’s very simple to execute. Comment here if you need help. Have fun!

- MB

Trackback URI | Comments RSS

Leave a Reply