Example #1
0
/**
 * Template part for displaying single posts.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Turn_the_Table
 */
global $post;
?>

<?php 
if (is_single()) {
    ?>
    <a class="post__back" href="<?php 
    echo fields_option('link_posts');
    ?>
" ><i class="icon-left-open"></i>
        <?php 
    if (is_singular()) {
        ?>
            Back to Press
        <?php 
    }
    ?>
    </a>
<?php 
}
?>

Example #2
0
        </div>

    </section>




    <!-- LOCATION-SECTION -->



    <section class="section section__location">

            <h2 class="section__title"><?php 
echo fields_option('title_section_5');
?>
</h2>

            <?php 
$location = get_field('location_map', 'option');
if (!empty($location)) {
    ?>
                <div class="location__map">
                    <div class="marker" data-lat="<?php 
    echo $location['lat'];
    ?>
" data-lng="<?php 
    echo $location['lng'];
    ?>
"></div>