Inicio - Documentación - POM Theme - 08 Templates - Archive template merge tags

Archive template merge tags

Archive tags describe the current archive and provide the point where its results are inserted.

Archive context

Merge tag Output
{{archive_title}} Current archive title
{{blogname}} Site title
{{archive_results}} Complete archive result region

{{archive_results}} is the connection between the archive shell and the feed template used for each result.

Taxonomy term context

Merge tag Output
{{term_id}} Current queried term ID
{{parent_term_id}} Parent term ID
{{term_description}} Current term description
{{term_thumbnail}} Current term thumbnail URL
{{term_bg_image}} Current term background-image URL
{{term_color}} Current term color

Term values are empty when the current context does not provide the requested value.

For a top-level term, choose a parent fallback:

{{parent_term_id fallback="current"}}
{{parent_term_id fallback="100"}}

The first returns the current term ID; the second returns the supplied numeric value.

Presentation helpers

Render an icon:

{{icon family="feather" name="grid"}}

Render a translated label:

{{translatable_string text=%%Browse this category%%}}

Example

<section class="archive-hero" style="background-image:url('{{term_bg_image}}')">
    <p>{{blogname}}</p>
    <h1>{{archive_title}}</h1>
    <div>{{term_description}}</div>
</section>

<section class="archive-results">
    {{archive_results}}
</section>

Archive templates do not support the feed/single {{if}} conditional block. Design term-only sections so that an empty dynamic value does not leave essential information unavailable.

For attribute formats and detailed behavior, see Archive templates.