Skip to content

Instantly share code, notes, and snippets.

@chrismcintosh
Created May 8, 2017 16:32
Show Gist options
  • Save chrismcintosh/47990aa8c20add77c0b4c5ed9d8b40cc to your computer and use it in GitHub Desktop.
Save chrismcintosh/47990aa8c20add77c0b4c5ed9d8b40cc to your computer and use it in GitHub Desktop.
<?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