Created
May 8, 2017 16:32
-
-
Save chrismcintosh/47990aa8c20add77c0b4c5ed9d8b40cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
add_action('genesis_setup', 'residence_post_meta_setup'); | |
function residence_post_meta_setup() { | |
/* Set the post type */ | |
add_action( 'pre_get_posts', 'set_residence_post_meta' ); | |
function set_residence_post_meta( $query ) { | |
$query->set( 'post_type', 'residence'); | |
$query->set( 'posts_per_page', -1 ); | |
} | |
} | |
//* Remove the entry meta in the entry header (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
//* Remove the post content (requires HTML5 theme support) | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment