After great frustration with this I finally found an IMMENSELY simple answer. If you have custom shortcodes using HTML tags the WordPress ediotr may mess them up adding the normal “p” tags within it. Just add this code to your functions.php file and add the “raw” short code on either side… problem SOLVED.
So let’s say you created categories of a custom post type and then use a template to display those posts using the WP_query() function. THEN you want to filter those results further by excluding a particular custom category or categories you created. Look no further…
Straight from the WordPress Comments section: Click Here for the code
Exactly what it sounds like. Just saved me a butt load of time and a mess of annoying phone calls to the hosting server. Easy code editing then moving of the index.php & .htaccess files. Maybe this’ll do the same for any other developers out there in a bind.
This powerful php function by David Walsh has helped me automatically back up a mysql database. Use as needed, throw in a function to auto call or have the client choose to do it if needed.
Love it! Here’s the link: http://davidwalsh.name/backup-mysql-database-php
**NOTE this is an old blog post so the php function uses ereg_replace which you’ll need to manually update to the proper preg_replace
Simple way to handle coding and calling a form with multiple checkboxes as an array. Displays both the HTML form necessities & PHP coding for the mail() function.
In case you need to give a customer access to a website without being able to edit their profile. *Gives you an option for inputting custom text where the profile page would normally be.
Simply place the code at the bottom of your functions.php page!
Quick and painless PHP code to hack the date function and add a numerical time to it. (ie + 5 hours, – 4 days, etc)