Custom field image won’t appear on child page
-
I’ve got a section of the sidebar that displays an image based on a custom field called “sidebar_image”. This works on all of my site pages and I can even duplicate the same image on several pages. But when I try to add the image “events_right.jpg” on a parent page, it won’t display on an of the child pages.
Here’s my code for displaying the custom field:
<img src="/wp-content/uploads/<?php $values = get_post_custom_values("sidebar_image"); echo $values[0]; ?>" alt="" />
Any help appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom field image won’t appear on child page’ is closed to new replies.