• Resolved c-m

    (@c-m)


    How do I change the code below to use the z_taxonomy_image_url call and work with the category image?

    <?php
    $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' );
    ?>

    At the moment this code fetches the post thumbnail, which the category image isn’t.

    I’m using it for parallax backgrounds on my category pages.

    https://www.ads-software.com/plugins/categories-images/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter c-m

    (@c-m)

    At the moment, using the code above, the thumbnail from first post in the category is being pulled in and used as the parallax background for that (sub)category.

    I don’t want that. I want the actual category image to show.

    Somehow the code I posted above needs to amended to incorporate z_taxonomy_image_url instead of get_post_thumbnail_id but I haven’t a clue how to go about that. ??

    I presume the plugin developer checks this this forum when he can.

    I did try leaving a comment for him on his website, but his site has an issue.

    Plugin Author Muhammad

    (@elzahlan)

    Hey c-m

    Sorry for reply late.
    Which template (file name) you are display the category image ?

    Plugin Author Muhammad

    (@elzahlan)

    I will check this as resolved till you reply back

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I call the category image?’ is closed to new replies.