Author:
erics, December 20th, 2018
|
// include custom jQuery function wyz_include_custom_jquery() { wp_deregister_script('jquery'); wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, true); } add_action('wp_enqueue_scripts', 'wyz_include_custom_jquery'); |
Categories: How-To's, Technology Tags: add_action, howto, include, JQuery, Min, tips, WordPress, wp_deregister_script, wp_enqueue_script, wp_enqueue_scripts
| No comments
Author:
erics, October 21st, 2017
wordpress/wp-content/themes/yourTheme/single-yourCPTslug.php
|
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(); |
Categories: How-To's, Technology Tags: add_action, cpt, Custom, custom post type, genesis, genesis_before_entry_content, howto, Loop, meta, POST, post type, Single, Theme, tips, WordPress
| No comments