Is your HTML5 Video playing perfectly on Android phones, but not on iPhones? If you are having problems with your...
This is the best method I found for completely removing the comments from WordPress. This combination of functions will remove...
You can use the following method in php to create a conditional that checks if a url has http or...
To exclude draft posts from appearing in the ACF Relationship field, add this code to your functions.php file. All you...
To stop any page from being deleted by any user role, including admins, add the following code to your functions.php...
A useful bit of code to prevent files from being accessed (or hotlinked) in WordPress. Prevent files from being directly...
Get the featured image dimensions (width and height) in WordPress. Paste the following code in the single.php file. <?php $post_id...
To allow the editor user role to have full access to Gravity Forms, simply add this code to your functions.php...
Add this code to your functions.php file to add the dimensions to the image object array for svgs. add_filter( 'wp_get_attachment_image_src',...
A quick snipped of code filter parameters into YouTube oEmbed requests. Handy to remove suggested videos, YouTube contols and info....
A quick snipped of code that can be used attach a function to the escape key. Great for adding or...
Fed up of getting the W3 Validator warning "The type attribute is unnecessary..."? Here is a handy bit of code to...