I blog about web development, WordPress / WooCommerce tips...
and other stuff.
Fed up of getting the W3 Validator warning "The type attribute is unnecessary..."? Here is a handy bit of code to...
A nice solution for a custom WordPress Ajax login form without using a plugin. Place this anywhere you would like...
A quick way to remove empty p tags from custom shortcodes in Wordpress. <?php add_filter("the_content", "the_content_filter"); function the_content_filter($content) { $block...
A quick way to manually disable the WordPress emojicons code without needing a plugin. Pop this in your functions.php file:...
Add this to your functions.php to add a class to all pages within a tree: function is_tree($pid) { // $pid...
Handy bit of code you can use in your custom templates that grabs the all the page or post data by ID:...