Forum Replies Created

Viewing 15 replies - 31 through 45 (of 70 total)
  • Thread Starter raindance

    (@raindance)

    Actually I have another snag with the posts…I must be doing something wrong

    I made a post called “flight deals test post”
    I assigned it to a new sub category “flight-deals” (slug)
    This sub category is assigned to “juicy-travels-blog”
    I have a folder /graphene-child/images/custom-headers/juicy-travels/blog
    and within that folder I have
    /flight-deals

    But the test post flight deals only shows headers from the main /juicy-travels-blog/ folder, not the /flight-deals/folder.

    I’ve tried assigning the post to just the sub cat flight-deals and to both juicy-travels blog and flight-deals. Either way it doesn’t show the headers from the /flight-deals/ folder.

    What step did I miss? ??

    Thread Starter raindance

    (@raindance)

    So I’ve played around with it and indeed it works perfectly for single posts, just as you say! Fantastic!

    I was also hoping it work for pages as most of the content I have so far is as pages not posts.

    Can it also be made to work with pages as well as posts?
    (Please don’t kill me) ??

    Thread Starter raindance

    (@raindance)

    Ok here is what I’m finding…
    Yahooo for blog posts assigned to the category “blog” by inserting the cat id in the array…works PERFFECTLY. So easy, so perfect.

    The one where it didn’t work was a page instead of a blog post I assigned to the category blog.

    Does the code only work for posts, not for pages?
    Something different I need to do other than assign an existing page to the category “Blog”?

    Example..I have the page “flight deals” in the menu under Blog menu item
    https://juicytravels.com/flight-deals/
    It’s a page which I assigned to the category Blog but it’s still showing regular site headers…?

    Amazing commenting…so great!

    Thread Starter raindance

    (@raindance)

    Yippe…implementing now…you are awesome for doing this!
    Will report back in a moment…

    Thank you!

    Thread Starter raindance

    (@raindance)

    Oh that’s wonderful news, thanks!
    I’m sure a lot of people with Graphene will be reallllly appreciative of this! Can’t wait to see it and play with it!

    Thread Starter raindance

    (@raindance)

    Thank you for not giving up! ??

    Thread Starter raindance

    (@raindance)

    Any luck? ??

    Thread Starter raindance

    (@raindance)

    Yes! Perfectly!

    And in a perfect world…I could do it for as many parent categories/sub categories as I wanted to…like can I add more of the line that calls the catid 52 in?
    Like
    if ( in_category(52) || post_is_in_descendant_category(52) ){
    if ( in_category(41) || post_is_in_descendant_category(41) ){
    if ( in_category(17) || post_is_in_descendant_category(17) )

    or whatever?
    Then when I add a new category which I want to control images, I can just add in that line to functions with a new cat id?

    Thread Starter raindance

    (@raindance)

    Awesome! Thank you for explaining again…sorry if I missed the point ??
    Ok so…if we can:
    I want to be able to have it pull images for a parent category, like Blog (let’s just do that one then figure out multiples)
    So…I want the parent category “blog” to pull images from a folder, in this case I named it for the slug title of the main category called juicy-travels-blog.
    Can we make the category archive page pull from the folder with the slug title?
    Right now it looks like the post/pages within the category “blog” are pulling from that folder, which is perfect. In other words, I want the parent page to also pull from the same folder so that they all look the same to start.
    Then…if I want sub-categories like your example slug title blog-jokes to pull from their own folder /custom-headers/blog-jokes it would, but if there is no such folder, it would just also pull from the main category slug titled folder images/custom-headers/juicy-travels-blog

    Does that make sense?

    Thread Starter raindance

    (@raindance)

    Hmmm…did I do something wrong?
    I have the same results.
    Blog header showing up great/random for the actual posts in that category.
    https://juicytravels.com/blog-post-test/
    But no blog header for the category archive page for the category “blog”
    https://juicytravels.com/category/juicy-travels-blog/
    I did change the cat id to 52.

    So I think we’re in the same spot as we started…working well for the posts/pages within the category blog, but not for the actual blog main page/category archive page.

    Anything else to try? Or maybe I did something wrong?
    The only thing I did differently was to paste in the new code to my child functions file and change the 4 to 52 in two places.
    Did I miss something? ??

    Thread Starter raindance

    (@raindance)

    Oh how wonderful, thank you, I’ll try it right now!

    Thread Starter raindance

    (@raindance)

    Thank you so much for hanging in there with me ??
    I have no idea what else to try!

    Have a great night yourself.

    Thread Starter raindance

    (@raindance)

    Assuming we tweak this and get it working for category archive pages, what if I want to do it for other categories, like
    air travel category 76
    travel tech category 34
    rewards programs category 45

    or whatever…I just made those up but…how would we do it so I can use the same theory for different categories? ??

    Thread Starter raindance

    (@raindance)

    In case it was that path issue, I duplicated the folder graphene-child/images/custom-headers/blog and /juicy-travels-blog and uploaded.
    I still don’t see the blog headers on the category archive page for blog here
    https://juicytravels.com/category/juicy-travels-blog/

    Did I miss something? ?? Entirely possible!

    Thread Starter raindance

    (@raindance)

    Ok so its there an uploaded but I don’t see any difference.
    Everything works as it did but the blog category archive page is still showing “rest of the site” images.

    Question…did I say the wrong path for images?
    Because I’m using a child theme, the path is in the child theme images folder, not main graphene folder.

    So like…
    https://www.juicytravels.com/wp-content/themes/graphene-child/images/custom-headers/blog/juicytravelsblog-header-1.jpg
    And I notice your note above says graphene/images…
    ?

Viewing 15 replies - 31 through 45 (of 70 total)