Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Last active May 4, 2020 19:54
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 vfontjr/9d3137ee8fc4d09055c46c19ed6d0c5e to your computer and use it in GitHub Desktop.
Save vfontjr/9d3137ee8fc4d09055c46c19ed6d0c5e to your computer and use it in GitHub Desktop.
<?php
add_filter( 'genesis_before_loop', 'move_link_post_title' );
function move_link_post_title() {
if ( has_post_format('link') ) {
remove_filter( 'the_content', 'wpautop' );
}
}
<?php
add_filter( 'genesis_before_loop', 'remove_post_format_title' );
function remove_post_format_title() {
global $post;
if ( has_post_format( 'link', $post->ID ) ) {
remove_filter( 'the_content', 'wpautop' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment