Allows the use of shortcodes in Genesis Archive Intro Texts/description. These settings are available for term archives, author archives, and custom post type archives.
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 | |
/** | |
* Allow shortcodes in genesis archive intro text. | |
* | |
* @author Joshua David Nelson, [email protected] | |
**/ | |
// Custom Post Type Archive Intro Text | |
add_filter( 'genesis_cpt_archive_intro_text_output', 'do_shortcode' ); | |
// Author Archive Intro Text | |
add_filter( 'genesis_author_intro_text_output', 'do_shortcode' ); | |
// Term Archive Intro Text | |
add_filter( 'genesis_term_intro_text_output', 'do_shortcode' ); |
Source: https://gist.github.com/joshuadavidnelson/feb26f83d7d12ee8c51d0af116778dff
Tags: archive, author, custom post type, Genesis, Taxonomy