I want to write a function in Wordpress to change the img alt tags for the header image for each wordpress page based on the URL and create its own URL image link, so that each page has the same looking header image, but it will show different alt tags and image URL location.
I'm really rusty with C#, know basic html and haven't learned php, but I think I know how it should be done.
Function has to compare current page URL, maybe using the_permalink() ... to a list of permalinks that I'm using ... maybe in an array?
if the_permalink() = array
array=
permalink1 => <img src=imageURL1 alt=kw1>
permalink2 => <img src=imageURL2 alt=kw2>
permalink3 => <img src=imageURL3 alt=kw3>
display=array
It should be easy coding right? If anyone proficient at PHP can chime in, much appreciated!
Cheers!