Thanks Leo, I will definitely spend more time learning about this new feature called hook.
Regarding the question #2, if I keep adding new posts (which I will), it will also keep replacing the old ones on my homepage. I need 10 such boxes on my home page all the time, these will be coupon codes so that whenever anyone visits my site, they get to see the codes. Is there any way to keep 10 permanent boxes on the homepage even if i keep creating new posts?