Rotating headers for ONE category?

  • raindance

    #19054

    Syahir-

    Can you help me get this dialed in? It’s so close to being what I want it to do…

    Did I miss something in your instructions?

    raindance

    #19055

    Any help Syahir? 🙂

    So the only issue still is the category archive page, as you correctly pointed out earlier, is not showing images from /images/custom-headers/juicy-travels-blog

    Perhaps I missed something in your instructions?

    raindance

    #19056

    I’d really like to get this working…its so close.

    Am I missing something? I believe I implemented as you suggested so far. I’d really appreciate it if you would help me get it finished so I can move on with it…

    Thanks in advance

    raindance

    #19057

    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

    raindance

    #19058

    A really wonderful coder at the wordpress forum dialed this in beautifully for me.

    The code itself is here and really well commented.

    http://pastebin.com/7txapyW9

    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.

    Mod

    Kenneth John Odle

    #19060

    Raindance,

    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.

    raindance

    #19061

    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!

    raindance

    #19062

    Ohh and check this out! He just got it to work for pages also…here is the new code!

    http://pastebin.com/wtGmhDzv

    As I said in the WP forum…

    Thank you Marvelous Marventous!

    Anonymous

    #19063

    Haha… I know Marventous. He is pretty spectacular. A true codemonkey 😉

    I’m glad you got this resolved!

    larkart

    #19064

    Could you post the link to where the post is in the WP Forums by Marvelous Marventous? Thanks.

Viewing 10 posts - 41 through 50 (of 53 total)

  • You must be logged in to reply to this topic.