Exemplo n.º 1
0
function ingress_html($post)
{
    wp_nonce_field('_ingress_nonce', 'ingress_nonce');
    ?>

<h2>Legg til ingress</h2>

<p>
    <label for="ingress_content"><?php 
    _e('Ingress', 'ingress');
    ?>
</label><br>
    <textarea style="width: 100%;" name="ingress_content" id="ingress_content"><?php 
    echo ingress_get_meta('ingress_content');
    ?>
</textarea>

</p>
<?php 
}
    }
    ?>
                <h1><?php 
    the_title();
    ?>
</h1>
                <?php 
    if ($post->post_type != 'product' || $post->post_type != 'product_pdf' || is_page()) {
        ?>
                <?php 
    }
    ?>
                <article>
                    <?php 
    if (!empty(ingress_get_meta('ingress_content'))) {
        echo '<div class="ingress">' . ingress_get_meta('ingress_content') . '</div>';
    }
    ?>
                    <?php 
    echo $post->post_content;
    ?>
                </article>
                <br />
                <br />

                <?php 
}
?>