Deactivate post after certain date

Here is a little function that upon loading of site checks to see if the date is past the set date for that post id.  If so then it sets that post to draft mode and removes the post from the live site. function deactivate_post_check() { $post_ids = array(‘345'...

Debugging and Error Logging in WordPress

So most servers do error logging but if you want to improve this functionality you can modify your wp-config.php file with the following code snippet.  It consolidates not only the PHP errors but also logs any WordPress bugs that get reported via WordPress debugging...

Disable PHP File Execution via .htaccess

Here is the code that you can put in your .htaccess file within a folder to disable php file execution.  It is very useful in the WordPress's wp-content/uploads directory for making sure files that get uploaded are not executable. <Files *.php> deny from all...

Divi Child Theme

Click Here to download the Divi-child.zip file.  The following are the code snippets for the respective files so you can recreate them yourself.  The functions file includes the style.css files from both the parent and child theme. It also gets the current time stamp...