Tutorials, Downloads, Political rans and more
Visit my blog for more information.


View Latest news here.

Demo’s for All themes

http://www.elegantthemes.com/gallery/

eVid - Premium WordPress Theme

Code:

http://rapidshare.com/files/159236449/eVidTheme.zip

Art See - Premium Wordpress Theme

Code:

http://rapidshare.com/files/164199769/ArtSeeTheme.rar

Bluemist,Earthly Touch,eGallery - Premium Wordpress Themes



Code:

http://rapidshare.com/files/164201537/BlumistEartheGallery.rar

Grunge Mag - Premium Wordpress Theme

Code:

http://rapidshare.com/files/164202845/GrungeMagTheme.rar

Influx - Premium Wordpress Theme

Code:

http://rapidshare.com/files/164204350/InfluxTheme.rar

Wooden - Premium Wordpress Themes


Code:

http://rapidshare.com/files/164205698/QuadStudiWood.rar

Bluesky,Inter Phase,Tidal Force,WhosWho - Premium Wordpress Themes




Code:

http://rapidshare.com/files/164206992/WhoBluskyInterSimpTida.rar

 

Good Post? Share it:
  • Digg
  • Live
  • E-mail this story to a friend!
  • Facebook
  • Google
  • Mixx

This will allow you to place ads between any post you want on your home page. What we have to do is screw around with the Wordpress While loop and make it do our evil bidding.

First - you need to edit the index.php of your theme. What ever theme you are using you want to edit it by using the wordpress admin or opening it in your favorite code editor.

themes chill here:
root/wp-content/themes/
and just find your theme and open index.php

Once you have this mush of code opened in front of you its time to start poking around.

Find this line somewhere at the top of the code:

<?php while (have_posts()) : the_post(); ?>

Make it look like this:

<?php $counter = 1; ?>
<?php while (have_posts()) : the_post(); ?>

Next you have to find:

<?php endwhile; ?>

and make it look like this:

<?php $counter++; ?>
<?php endwhile; ?>

Then using your HTML knowledge look at the code within the while loop and try to figure out where the post ends, most likely you can just stick your add right before the last “</div>” before the endwhile.

when you know where you want your add, stick this code there:

<?php if ($counter == 2) {
echo ‘ <a href=”http://yourlink.com”> <img src=”images/ad.jpg”> </a>’;
} ?>

$counter==number, this number determines the post the ad will be places around.

anyway this concludes this little guide, ask questions in the comments.
thanks

 

Good Post? Share it:
  • Digg
  • Live
  • E-mail this story to a friend!
  • Facebook
  • Google
  • Mixx