Created
August 8, 2017 02:36
-
-
Save jillmaturino/8a5240785bb77988d3c654696fc1189b to your computer and use it in GitHub Desktop.
Genesis filter to modify permalinks in archive page
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
// Change permalinks to http instead of https | |
add_filter( 'genesis_post_title_output', 'http_permalink', 15 ); | |
function http_permalink( $title ) { | |
$relative_permalink = force_relative_url (get_permalink ($post->ID)); | |
$permalinks="http://cdcgamingreports.com".$relative_permalink; | |
$title = sprintf( '<h2 class="entry-title"><a href="%s">%s</a></h2>', __($permalinks), the_title_attribute( 'echo=0' )); | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment