Customizing gallery & single displayed details (name, description, etc)

How to change photo rating gallery & single displayed details with using template tags (select HD quality).

Conditional Tags

Since version 2.2.800 description template supports new feature – Conditional tags, that allows adding some simple logic.

Usage: [IF {name}]if `name` not empty – display something, maybe {name}[ELSE]`name` is empty, can use some other field or display nothing[ENDIF].

Example:

[IF {meta_username}]
<img src={meta_profile_pic_url} width=50/>
<a href='https://www.instagram.com/{meta_username}/' target=_blank>@{meta_username}</a>
[ELSE]
NO username
[ENDIF]

or

[IF {meta_website}]<a href="{meta_website}" target="_blank" rel="noopener">{meta_website}</a>[ELSE][ENDIF]

Note: in [IF] tag can be used all default tags {name}, {description}, {full_description}, {meta_field_key}

 

Related Articles

Leave A Comment?