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 , | 6 Responses

51 | Twenty Eleven – New Page Template with Sidebar Correction

g+

If you are creating a new page template for a child theme of Twenty Eleven, with a sidebar, you need to correct the body_class output to remove the css class .singular. Add this to functions.php of your child theme: If … Check the whole post »

Posted in Tips & Tricks, Twenty Eleven | Tagged , , | 19 Responses