Skip to content

Instantly share code, notes, and snippets.

@elimn
Created March 30, 2017 00:28
Show Gist options
  • Save elimn/6fa10ca3365f8e332103c1ff62197803 to your computer and use it in GitHub Desktop.
Save elimn/6fa10ca3365f8e332103c1ff62197803 to your computer and use it in GitHub Desktop.
MT | TEC | Hide the address line on archive views
<?php
/**
* Hides the address line on archive views
*/
function tribe_hide_full_address_archive() {
if ( is_main_query() && ! is_single() ) {
add_filter( 'tribe_get_full_address', '__return_empty_string' );
}
}
add_action( 'wp', 'tribe_hide_full_address_archive' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment