Rotating headers for ONE category?
-
To clarify where I’m stuck:
http://juicytravels.com/blog-post-test/
Is how I want it. See the blog header image says Blog and is the purple letters & different photo of me. And that is the actual post itself.
But on the category archive page (which I threw you off on with my own confusion)
http://juicytravels.com/category/juicy-travels-blog/
It still shows the “regular rest of the site – non blog header”
The slug for the category is juicy-travels-blog
The images are in the folder images/custom-headers/juicy-travels-blog/
I love about this solution that I can make numerous subject specific image header folders and plug them in…that is so perfect about it, thank you.
But I am stuck on how to make it pull random images from say the folder /juicy-travels-blog/ for the category archive page for the category /juicy-travels/blog.
It’s doing it for the posts = perfect.
It’s not doing it for the category archive page….can you please help me tweak it to also show header images from the slug title folder for the category archive page?
Pretty please? 🙂
Thanks
A really wonderful coder at the wordpress forum dialed this in beautifully for me.
The code itself is here and really well commented.
The WP Forum thread is here if anyone wants to see more details about how we got there.
http://wordpress.org/support/topic/specific-header-image-for-specific-category?replies=46
This is for category archive pages and single posts to rotate custom header images from folders you create. It works great and is super easy to use. It doesn’t work for single pages, but I figure I can just use a single custom header on a page so it doesn’t matter too much. He may try to re-work it to include pages but maybe not. He spent a lot of time dialing this in. It’s really well done and a pleasure to have! If he does re-work it to include pages he will update the pastebin. Just subscribe to that thread for updates.
Thanks for getting it started Syahir.
ModRaindance,
I was watching this in the WP forums, as well. I couldn’t believe it when I saw it here with a little green icon. I’m bookmarking this for future reference.
Ken-
I know right? So wonderful. I am so grateful and the commenting is so fantastic and detailed and clear!
By the way it bears saying here also…
Marventus you rock 🙂 Thanks from all of us in the Graphene forum for taking the time to dial that in so elegantly for me!
Ohh and check this out! He just got it to work for pages also…here is the new code!
As I said in the WP forum…
Thank you Marvelous Marventous!
Haha… I know Marventous. He is pretty spectacular. A true codemonkey 😉
I’m glad you got this resolved!
- You must be logged in to reply to this topic.