Can't seem to output fields related to the current category page I'm struggling to output images and other fields that are related to the current category page.

So {{ entry.title }} is outputting as expected, and displays the title of the related items to that category. But any other fields do not output.

{% set shopEntries = craft.entries.section(shop).relatedTo(category) %}
{% for entry in shopEntries.limit(16) %}

    {% set image = entry.shopImage.first() %}

    {% set shopImageTransform = craft.imager.transformImage(image, 
    { width: 130, height: 170, mode: 'crop', position: 'center-center', jpegQuality: 90 } 
    ) %}

    &lt;a href="{{ entry.shopUrl }}" target="_blank" rel="noopener noreferrer"&gt;&lt;img src="{{ image.url('shopImageTransform') }}" alt="{{ entry.title }}"/&gt;&lt;/a&gt;

{% endfor %}


This snippet is appearing on a category page, e.g domain.com/category/fashion.
Specifically for the image, if I'm correct, you're trying to use imager the wrong way. 

It should be

   {% set image = entry.shopImage.first() %}
   {% set shopImageTransform = craft.imager.transformImage(image, { width: 130, height: 170, mode: 'crop', position: 'center-center', jpegQuality: 90 }) %}

   &lt;a href="{{ entry.shopUrl }}" target="_blank" rel="noopener noreferrer"&gt;
      &lt;img src="{{ shopImageTransform.url}}" alt="{{ entry.title }}"/&gt;
   &lt;/a&gt;


Basically, 'shopImageTransform' becomes the new 'image' so you have to call .url on shopImageTransform instead of on image. You can see an example here , in the Imager readme. 



As for the problem with the shopUrl, if you just dump it out, what do you receive? Is it holding any value?