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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Output the 'last updated' date with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/last-updated-date/ | |
*/ | |
add_filter( 'genesis_post_info', 'rtug_last_updated_date' ); |
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Output the year a Post or Page was last updated | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/last-updated-date/ | |
*/ | |
add_filter( 'genesis_post_info', 'rtug_last_updated_date_custom' ); |
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Output the 'last updated' date in relative terms | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/last-updated-date/ | |
*/ | |
add_filter( 'genesis_post_info', 'rtug_last_updated_date_relative' ); |
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Output the 'last updated' date with extra content | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/last-updated-date/ | |
*/ | |
add_filter( 'genesis_post_info', 'rtug_last_updated_date_before_after' ); |
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Set a fallback featured image with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/default-featured-image/ | |
*/ | |
add_filter( 'genesis_get_image_default_args', 'rtug_fallback_featured_image' ); |
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Set a fallback featured image based on args | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/default-featured-image/ | |
*/ | |
add_filter( 'genesis_get_image_default_args', 'rtug_fallback_featured_image_args', 10, 2 ); |
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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Set a fallback featured image based on category | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/default-featured-image/ | |
*/ | |
add_filter( 'genesis_get_image_default_args', 'rtug_fallback_featured_image_category' ); |
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 | |
// Plugin Name: My Custom Plugin for WordPress + Genesis | |
add_filter( 'genesis_search_text', 'rtug_search_input_text' ); | |
function rtug_search_input_text( $text ) { | |
return 'Search my website'; | |
} |
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 | |
// Plugin Name: My Custom Plugin for WordPress + Genesis | |
genesis_standard_loop(); |
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 | |
//* Plugin Name: My Custom Plugin for WordPress + Genesis | |
/** | |
* How to use Genesis functions in a plugin | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-functions-plugin/ | |
*/ | |
add_action( 'genesis_setup', 'rtug_loop' ); |
OlderNewer