Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jillmaturino/8a5240785bb77988d3c654696fc1189b to your computer and use it in GitHub Desktop.
Save jillmaturino/8a5240785bb77988d3c654696fc1189b to your computer and use it in GitHub Desktop.
Genesis filter to modify permalinks in archive page
// 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