Wordpress

WordPress – Add Custom Content Plugin

Editing posts directly within the wordpress editor can be a nuisance when wordpress inserts ‘p’ tags and the like. Sometimes I want to edit HTML in actual HTML editor which allows me greater control over the presentation of the content. To facilitate this I have added a plugin which inserts HTML from a custom file based on the post id.

Read more
GeneralPHPWordpress

WordPress – Google Analytics (ga) tracking code as a plugin

For wordpress sites I build, I insert the google analytics (ga) tracking code into the html head section via a plugin. I prefer this ‘cleaner’ approach of separating the code into a separate file. I also use the Wordpress function ‘is_user_logged_in’ to remove most of my visits to the site as I am typically signed in to my WP admin account. This post describes the steps I use…

Read more