Since: 1.0 Last Updated:
Back to Main Index

This safety function is used to get the correct image size to use when outputting a WordPress attachement or featured thumbnail.

Location: /core/helpers/template.php


  • $value – Image size string to translate, options include
    • image-portrait
    • image-landscape
    • image-square
    • image-no-crop
    • image-round


The following query will return layers-square.

With that we can then generate a large portrait image.