Return to Snippet

Revision: 52835
at November 2, 2011 18:04 by BK4D


Initial Code
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
...css, javascript etc
</head>
<body>
<div id="header_bg">
    <div id="header">
        <div id="address"><?php if (get_field('address', 'options')) { the_field('address', 'options') } ?></div>
    </div>
</div>
...nav etc

Initial URL


Initial Description
Simple sample of my header.php trying to grab the 'address' field from the Options page, but no luck. Same with my footer.php. BTW it works fine in my other template files (page.php etc)

Initial Title
ACF Options fields in Wordpress theme header.php

Initial Tags


Initial Language
PHP