Modifiers

original_image

The original_image modifier returns the original uploaded image URL when WordPress has one.

php
<img src="{{ hero_image | original_image }}" alt="{{ hero_image.alt }}">

Use it when WordPress has created a scaled full-size image but the template needs the actual upload. It works best with media values that include an attachment ID, such as ACF image fields, gallery items, or featured_image.

php
<img src="{{ featured_image | original_image }}" alt="{{ title }}">

If TemplateX only has a plain URL and no attachment ID, it returns that URL.