• Resolved arbis

    (@arbis)


    Hello dear friends.
    I created a custom image size (width this line: “add_image_size( ‘category-thumb’, 2731, 1024, true );”) but could not find how to use it with “Advanced Category and Custom Taxonomy Image”

    Thank you for your help.

    Below is the code I have:
    =========
    <img src=”<?php
    foreach((get_the_category()) as $category);
    $taxonomy_img = get_taxonomy_image( $category->cat_ID );
    if ($taxonomy_img == “Please Upload Image First!”)
    {
    echo get_template_directory_uri(); echo ( ‘/images/cat_img.jpg’ );
    }
    else {
    echo( $taxonomy_img );
    }
    ?>”>
    =========

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sajjad Hossain Sagor

    (@sajjad67)

    Unfortunately the image you upload in your taxonomy edit page will be fetched, there’s no option to select image sizes! You will have to upload that particular size in the edit taxonomy page!

    Thread Starter arbis

    (@arbis)

    Thank you for the reply.
    Understood. Will upload the image cut in particular size.
    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to select custom image size?’ is closed to new replies.