Skip to content

Instantly share code, notes, and snippets.

@designbuildtest
Created June 19, 2014 02:39
Show Gist options
  • Save designbuildtest/080021b1ea14df175700 to your computer and use it in GitHub Desktop.
Save designbuildtest/080021b1ea14df175700 to your computer and use it in GitHub Desktop.
Show map page
<?php // Map page
if ( get_theme_mod( 'map_page' ) ) {
$map_page_id = get_theme_mod( 'map_page' ); ?>
<div class="location-map">
<a href="<?php echo esc_url( get_permalink( $map_page_id ) ); ?>" title="<?php echo esc_attr( get_the_title( $map_page_id ) ); ?>">
<?php echo esc_attr( get_the_title( $map_page_id ) ); ?>
</a>
</div><?php
} ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment