Created
July 1, 2016 16:35
-
-
Save billerickson/3ebe0d12bc68f8b56ed062444ccfcb8e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Change DPS titles to h3 | |
* | |
*/ | |
function be_dps_titles_to_h3( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class ) { | |
return str_replace( $title, '<h3>' . $title . '</h3>', $output ); | |
} | |
add_filter( 'display_posts_shortcode_output', 'be_dps_titles_to_h3', 10, 9 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment