Introduction to Continuous Integration with WordPress – WordCamp Cape Town 2016

At WordCamp Cape Town 2016 I did a quick intro workshop into continuous integration with WordPress, which covered the principles of continuous integration (CI) and a few ways to start with unit testing and integration testing. Sadly, I didn’t have enough time to get through the entire workshop and really wanted to get people trying out […]

Strict Standards: Only variables should be passed by reference

I recently came across an interesting warning on one of my WordPress sites. The warning was “Strict Standards: Only variables should be passed by reference” and was referring to line 14. As you can see below, I wasnt’ really sure what the issue was here.

After a big of research, I found that array_pop […]

Remove Protected Posts from Search Results in WordPress

I recently came up with a scenario on a website I created using WordPress which needed me to prevent protected posts from displaying in search results or on the blog index page. Initially, I thought this would be a setting on a per post page but alas, WordPress does not have the feature built-in. After […]

',a='
';return t.replace("ID",e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement("iframe"),t="https://www.youtube.com/embed/ID?autoplay=1";t+=0===this.dataset.query.length?'':'&'+this.dataset.query;e.setAttribute("src",t.replace("ID",this.dataset.id)),e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","1"),this.parentNode.replaceChild(e,this)}document.addEventListener("DOMContentLoaded",function(){var e,t,a=document.getElementsByClassName("rll-youtube-player");for(t=0;t