Inicio - Documentación - POM Theme - 11 Developers - 11.3 Merge tags - Archive template merge-tag contract

Archive template merge-tag contract

Archive templates own the outer archive shell. Their current core catalog includes:

  • {{archive_title}};
  • {{term_id}};
  • {{parent_term_id fallback="current"}};
  • {{term_description}};
  • {{term_thumbnail}};
  • {{term_bg_image}};
  • {{term_color}};
  • {{icon family="feather" name="grid"}};
  • {{translatable_string text=%%Filters%%}};
  • {{archive_results}}.

Use {{archive_results}} once for the main result region; the selected feed template controls each repeated item. The exact semantics and examples are in Archive template merge tags.

Minimal structure

<header>
  <h1>{{archive_title}}</h1>
  {{term_description}}
</header>
{{archive_results}}

Taxonomy-specific values can be empty on a post-type archive. Wrap optional term media, color, parent, or description output in the documented condition/fallback behavior rather than assuming every archive has a current term.

Do not place {{archive_results}} inside markup intended for one card. The archive template owns the result region; the feed template owns the repeated item. Test a post-type archive, a top-level term, a child term, an empty result, and a paginated/faceted result.