This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//do not add in opening php tag | |
/** | |
* Custom Genesis Home Loop with Character Limitation on Excerpt | |
* | |
* @package Custom Genesis Home Loop with Character Limitation on Excerpt | |
* @author Neil Gee | |
* @link http://wpbeaches.com | |
* @copyright (c)2014, Neil Gee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Limit Search to Video | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/wordpress-search-post-type/ | |
* | |
* @param string search form | |
* @param string search text | |
* @param string button text | |
* @return string modified search form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'get_header', 'themeprefix_cpt_microdata' ); | |
//Change microdata for events custom post type | |
function themeprefix_cpt_microdata() { | |
if ('event' == get_post_type()) {//change to your cpt | |
//add in the microdata changes | |
add_filter( 'genesis_attr_entry', 'themeprefix_genesis_attributes_entry', 20 ); |