Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.