I'm attempting to link a specific header image to a specific post. This is simple to do if the post is being linked to directly as a single post. I can use this:
if(is_single("page-title")
$background_image = "background1.jpg";
But when the post is approached as an archive or a search, using this doesn't work:
if(is_paged("page-title") || is_archive("page-title") || is_search("page-title"))
$background_image = "background1.jpg";
There must be some way that the code knows that "/page/3/" is the same post-id as "year/month/day/page-title".
Does anybody have a clue? Thanks so much for any input.