Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Genesis Remove Author Box from Single Templates for the The Events Calendar
- * The Events Calendar @3.10
- * Genesis @2.1.2
- * this adds the filter for testing add_filter( 'get_the_author_genesis_author_box_single', '__return_true' );
- * To Do Fixed Trying to get property of non-object notice
- */
- add_action( 'pre_get_posts', 'tribe_genesis_hide_author_single_events' );
- function tribe_genesis_hide_author_single_events( $query ) {
- //ADD POST TYPE CHECK if isset
- if( is_singular( 'tribe_events' ) || $query->query['post_type'] == 'tribe_venue' || $query->query['post_type'] == 'tribe_organizer' ) {
- remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement