Support

Account

Home Forums General Issues want to display Category Image in loop Reply To: want to display Category Image in loop

  • Hi @pagol

    Could you please test the following code for me?

    $image = get_field('cat_thumbnail_image', 'category_99');
    echo <pre>;
    
    echo "Image field value:";
    var_dump($image);
    
    echo "Category value:";
    var_dump($category);
    
    echo </pre>;

    Where ’99’ is the ID of the category. Yes, please set the ID manually in this test so we know if the get_field() function returns the value or not.

    Thanks 🙂