Ejemplo n.º 1
0
function nav_linking()
{
    global $post;
    global $row_num;
    if (!get_sub_field('menu_post')) {
        if (is_page_template('template_home.php')) {
            return '#' . row_slug();
        } else {
            if (TAX_LOCATION == TRUE && !is_page_template('template_home.php')) {
                $terms_locations = get_the_terms($post->ID, 'locations');
                $terms_locations = $terms_locations[0]->slug;
                return get_site_url() . '/' . $terms_locations . '#' . row_slug();
            } else {
                return get_site_url() . '#' . row_slug();
            }
        }
    } else {
        return get_permalink(get_sub_field('menu_post'));
    }
}
Ejemplo n.º 2
0
            <div class="location__text">
                <?php 
the_field('location_text');
?>
            </div>

        </div>
    </section>


    <!-- CONTACT SECTION -->
    <section class="section section__contact">
        <div class="section__inner-wrapper">

            <span id="<?php 
echo row_slug();
?>
"></span>
            <h2 class="section__title"><?php 
echo row_item($postParent);
?>
</h2>

            <div class="contact__body">
                <div class="contact__text">
                    <?php 
the_field('contact_text');
?>
                </div>

                <div class="contact__form">