Stop hard coding urls in WordPress templates

Rob Golbeck Tutorials Leave a Comment

A common mistake I come across when I’m working on WordPress themes is site urls and directory paths hard coded into template files. This is bad practice because if the site’s domain name ever changes, or if the theme is reused on another website, the urls won’t work.