How To Create a Single Custom Post Type Template for Genesis in WordPress

Author: , October 21st, 2017

wordpress/wp-content/themes/yourTheme/single-yourCPTslug.php 1 2 3 4 5 6 7 8 9 10 11 add_action( ‘genesis_before_entry_content’, ‘display_custom_fields’ ); function display_custom_fields() {     $jobTitle = get_field(’_jobTitle’) ?: ‘-’;     print <<<EOT     <br style="clear:both"/>     <p>Job Title: $jobTitle</p> EOT; }   // Genesis Loop genesis(); add_action( ‘genesis_before_entry_content’, ‘display_custom_fields’ ); function display_custom_fields() { $jobTitle = […]

How To Generate Any Size Dummy Image On The Fly

Author: , September 27th, 2011

I found this VERY cool website, http://dummyimage.com/, that lets me custom-build a placeholder image on the fly, like this: 1 <img src="http://dummyimage.com/120×120/fff/ccc" alt="Placeholder Image for a 120px x 120px graphic"> <img src=”http://dummyimage.com/120×120/fff/ccc” alt=”Placeholder Image for a 120px x 120px graphic”>