Monthly Archives: March 2012

54 | Adsense Ad at Random Position in a Posts Page

g+

This code is made to output an adsense ad (or any other block of output) at a random position within the loop, with the restriction to a preset number of possible positions. Thanks to the tutorials of http://www.php.net/ …

Posted in Tips & Tricks, WordPress | Tagged , | Leave a comment

53 | Numbering Posts

g+

To give posts a continuous number in index pages or archives, try this little piece of code: Place it within the loop; condition: needs to be adjusted for any custom query.

Posted in Easy Coding for Wordpress | Tagged , | 5 Responses