Script not working in Safari

Glenn Blog, Glenn's Blog Leave a Comment

We recently found an odd behaviour in Safari that stopped a script working on page load. We came back to the page and then it periodically worked, but on the whole it simply wasn’t firing up. If you have the same problem then we would advise the following:- 1. Make sure you are using valid HTML and Doctype. To validate …

WordPress Show if Custom Meta Exists

Glenn Glenn's Blog Leave a Comment

We wanted to share some code with you that we created to show content if a WordPress Custom Meta / Field exieted within a WordPress Custom Post Type. Most versions that we’ve encountered make this a bit cumbersome and we wanted a way to do it with php, but also to include full html within each command. Here’s the snippet:- …