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 Display the Featured Image on a Single Post in WordPress Only for a Specific Category

Author: , January 24th, 2016

1 2 3 4 5 6 7 8 9 10 11 12 13 14 add_action( ‘genesis_entry_content’, ‘featured_post_image’, 8 ); function featured_post_image() {     $categories = get_the_category();     foreach ($categories as $category) {         // You can use slug, ID or any other identifier from the WP_Object         […]

How To Combine Serialized Form Data And Hash Objects For Post Or Get

Author: , September 23rd, 2011

1 2 3 4 var Params     = jQuery.param({        ‘pagenum’: 16,        ‘pageqty’: 10, }) + ‘&’ + jQuery(’#yourForm’).serialize(); var Params = jQuery.param({ ‘pagenum’: 16, ‘pageqty’: 10, }) + ‘&’ + jQuery(‘#yourForm’).serialize();