I found this nice little function to take a color and give you its inverse color. It is pretty useful to display a color on a background that is opposite so you can ensure it will display correctly without having to know what the color is. <?php // color_inverse...
Came across this nice little bit of code to write a CSV file on the fly using PHP and grabbing the data from a MySQL database. Thank you Stephen Morley for authoring a great little how to. // output headers so that the file is downloaded rather than displayed...
First step is to create the Post Type under the Post Type Creator. Under Supports: you should only leave title checked off. For post_type in the example I am giving I used ‘wpcmsninja_reviews' but you can set this to whatever you would like, just need to make...
Sometimes you will want to output the current year within your site. It is very useful with not having to update the Copyright notice in the footer of your site. Place the following code within your functions.php in the child theme and you are good to use the...