Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nickybc

    (@nickybc)

    Hey, thanks for the reply!

    The custom headers are showing up fine on all of my “Pages”, just not on any “posts”, my navigation just moves up like nothing is there. So I am assuming nothing is being inserted.

    How would I go about setting the value of “$post->ID” ? I am very new to php, so go easy on me!

    Thanks

    nickybc

    (@nickybc)

    Hi there, Im using marcovidor’s method and it works brilliantly:

    <div class="banner">
    <?php if(get_post_meta($post->ID, 'banner', true)) : ?>
    <img src="<?php echo get_post_meta($post->ID, 'banner', true); ?>" />
    <?php else : ?>
    <?php the_title(); ?>
    <?php endif; ?>
    <div>

    However, it doesn’t seem to work for posts as well. I know it probably wasn’t meant for posts, but I was just wondering if anyone knew how to adapt the code to include a custom header within posts as well. I would be very gratefull for your help.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)