Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'genesis_entry_header', 'sk_remove_images_features' );
- function sk_remove_images_features() {
- // var_dump( get_post_class() );
- if ( in_array( 'feature', get_post_class() ) ) {
- remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
- }
- if ( in_array( 'teaser', get_post_class() ) ) {
- add_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement