My own piece of the Internet
 
Tag: <span>coding fun</span>

Random default thumbnails for Yet Another Related Posts Plugin

I installed the Yet Another Related Posts Plugin (YARPP) and was frustrated by the stripey default thumbnail that was displayed if a post didn’t have a featured image. Unfortunately for me, this was quite a few. So what I ended up with was: Pretty ugly. So I did some pretty basic hacking and created a pretty awesome (just ask me) way of displaying random thumbnails if there isn’t a featured image associated with a post. Here’s what it looks like: Before I continue I need to offer a disclaimer – I am no coder so if you find anything here …