Steven McTainsh is a web developer based in New Zealand who loves creating websites.
Home

Annoying issue with footer.php in WordPress

While working on a WordPress theme recently, I came across a particularly frustrating issue. The aim was to integrate the existing site header into the blog and, thinking this would be simple matter of a PHP include/require, I went straight ahead. However, I was wondering why variables in the included file were being ignored. It basically came about because I forgot about what require_once does – requires that file once. After using require, the variables magically appeared! Wow! :)

Leave a Reply

Who am I?

I'm a web developer who is currently proficient in XHTML, CSS, PHP, MySQL and JavaScript. In addition to web programming, I also enjoy software development with C#. My portfolio and blog are a platform for me to demonstrate my abilities and voice my opinions on various (primarily) computing related topics. Since 2009, I have been studying at the University of Waikato.

Can't find what you're looking for?