http://wordpress.pastebin.com/aVbuNuaZ
a guess – you have actually not explained what you tried to achieve ;-(
ok, sorry was very busy at the time 🙂 Now i have this for my header images: http://pastebin.com/embed_js.php?i=StFjCqR7
It changes the header for every different page and category. However, when i read a certain post in a category the header switches bac kto default (from my page).
Is there an option to let wordpress know in which category im reading?
the corresponding conditional tag is:
in_category()
http://codex.wordpress.org/Function_Reference/in_category
to be used the same way as is_category()
damm, i’ve spend hours looking for an option…to easy this!
Thx
i used the in_cat now, but that code overwrites my is_front_page code since there is a post underneath my index page.
http://www.studio-strijp.nl/wordpress
If u click on the button “home” u get the correct image. Is there a fix for the index page?
try and combine is_single() && in_category() in your if statements to avoid this front page issue
thx for the help, it works 🙂