×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Joseph Riviello
Added: Nov 18, 2012 6:00 PM
Modified: Dec 29, 2012 7:40 PM
Views: 36
Tags: custom post types
  1.         // remove author box, post meta, and post info
  2.     // on custom post types
  3.     add_action('genesis_before', 'my_site_remove_info_cpt');
  4.    
  5.     function my_site_remove_info_cpt() {
  6.  
  7.         $post_type = get_query_var('post_type');
  8.            
  9.         if( !empty( $post_type ) && ( $post_type != 'post' ) ) {
  10.             remove_action('genesis_after_post', 'genesis_do_author_box_single');
  11.             remove_action( 'genesis_before_post_content', 'genesis_post_info' );
  12.             remove_action('genesis_after_post_content', 'genesis_post_meta');
  13.         }
  14.     }  
  15.  
  16.  
  17.