Tag: advertising

Display Random Adverts in WordPress with Custom Fields

Whilst building the exciting new version of Nometech (to be launched very, very soon!) [update – it has launched, this is it!], I needed a way of displaying a random 300×250 advert in the sidebar. After a bit of Google-ing to no avail, something came to me –  ‘why not use custom fields?!‘. Really, why not! In this post I’ll show you how to display a random advert in WordPress using custom fields and a couple of posts you’ve already written.