Custom Field and Blog Page
-
I came up with an issue that I don’t really understand so getting around it has been tricky. I welcome any assistance.
I am using the following code to change a Banner Logo throughout my WP installation…All is working with the exception of the page i created that holds my blog.
‘<?php global $wp_query;$postid = $wp_query->post->ID;echo get_post_meta($postid, ‘BannerIcon’, true); ?>’
What is causing this issue and How would I modify this code so that if BannerIcon field is not returning a value that “newImage.png” will be the default?
Thanks in advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Custom Field and Blog Page’ is closed to new replies.