Using a php logic Widget for sidebars.. i would like to..
Display a widget, only on posts… which contain a url to an image..
so if post 1 has custom field “pic_field” value=”http://…..cool.jpg/”
and post 2 has custom field “pic_field” value=”http://…….awesome.jpg/”
Then…. when someone is viewing post 1.. the sidebar will show cool.jpg
and if someone is viewing post 2, then they will see awesome.jpg in the side bar… but only while viewing that posts individual page..
i know how to make the custom field, i mean thats a no brainer i just add it on the post..
what would i put in a php logic widget in order to display these images, Only on a posts page, only of that post contains the url to an image, inside of that particular custom field value..
- The topic ‘Show specific photo in sidebar, depending on the post being viewed’ is closed to new replies.