display image based on page-id
-
This might be a tricky one – or super easy. I’m fairly new to PHP and CSS.
I’m using WordPress for CMS primarily and I’d like to have a specific image show up on each Page outside of the general loop.
I’ve been able to get a static image to display on all the Pages via page.php and I’ve been able to get random images to display (via cut & paste of coding).
But I’d like the images to be more specific.
I.e. When you click on about us (page-id=4) I’d like image 4 to display.
Any help would be appreciated.
The site is still under development at: https://www.encounterthis.com/new2008
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘display image based on page-id’ is closed to new replies.