×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Joseph Riviello
Added: Dec 29, 2012 7:41 PM
Views: 30
Tags: post custom types
  1.  
  2.     //Remove post meta from property and latest news
  3. add_action('genesis_before', 'remove_info' );
  4. function remove_info() {
  5. if ( is_singular (array ('latest-news', 'property') ) ) {
  6. remove_action( 'genesis_before_post_content', 'genesis_post_info' );
  7. remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
  8. remove_action( 'genesis_after_post', 'genesis_do_author_box_single' );
  9. }
  10. }