Skip to content

Instantly share code, notes, and snippets.

@ThierryA
Created January 18, 2016 11:23
Show Gist options
  • Save ThierryA/846f2d29b4ade4ef7c4c to your computer and use it in GitHub Desktop.
Save ThierryA/846f2d29b4ade4ef7c4c to your computer and use it in GitHub Desktop.
Beans: remove post more link #more-{id} anchor.
<?php
// Do not include the opening php tag if it is already included in your file.
add_filter( 'beans_post_more_link_attributes', 'beans_child_post_more_link_attributes' );
function beans_child_post_more_link_attributes( $attributes ) {
$attributes['href'] = esc_url( get_permalink() );
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment