Dynamic header image not displaying on new pages
-
The developer who built the site I’m working on used the following php to pull in header images for each page: <img src=”<?php echo get_template_directory_uri(); ?>/images/<?php echo(get_post_meta(get_the_ID(), ‘background’, TRUE)) ?>” />
You’ll notice most pages on printmailsolutions.com have a different header image.
But when I create a new page, the header image is broken just like this example: printmailsolutions.com/sitemap
How do I associate images to new pages?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Dynamic header image not displaying on new pages’ is closed to new replies.