F
F
foxayb2018-04-19 10:24:51
WordPress
foxayb, 2018-04-19 10:24:51

How to display a field via get_field in the header?

I'm trying like this:

<div class="col-md-12">
    <?php if(get_field('ppy_logo_off_text_on')):  ?>				
                    <div id="logo">
                        <a href="<?php echo esc_url( home_url('/') ); ?>">
                            <img <?php if ($archi_option['logo_scroll']['url'] != '') { ?>class="logo-static"<?php } ?> src="<?php echo esc_url($archi_option['logo']['url']); ?>" alt="<?php bloginfo( 'name' ); ?>">
                            <?php if ($archi_option['logo_scroll']['url'] != '') { ?>
                                <img class="logo-scroll" src="<?php echo esc_url($archi_option['logo_scroll']['url']); ?>" alt="<?php bloginfo( 'name' ); ?>">
                            <?php } ?>
                        </a>
                    </div>				
                    <span id="menu-btn"></span>
          <?php else : ?>
          <?php 
            $bg = get_field('xffffffffff'); 
                echo '<span>';
                echo $bg;
                echo '</span>'; ?>

          <?php endif; ?>
                    <!-- mainmenu begin -->

Logic get_field('ppy_logo_off_text_on') - respects, but get_field('xffffffffff') - does not output

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
E, 2018-04-19
@foxayb

get_field($selector, [$post_id], [$format_value]);
$post_id, as it were, must be, otherwise it will take the id of the current page

V
Valentin, 2014-04-05
@vvpoloskin

1) Turn on routing on a computer with two
network cards 2) Set static IPs on its network cards from the required networks
3) Write static routes to the desired networks on both routers through this computer

S
Sergey, 2014-04-05
@edinorog

Well .. umm ... actually we are now talking about a video about the router. And for this you need something like Kerio Control at the junction of networks

O
oia, 2014-04-05
@oia

mask 255.255.255.254 change or 255.255.255.252

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question