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

Single template merge-tag contract

Single templates render one current post/product. Common tags include:

  • post_id, title, content, excerpt, permalink, date, modified, author_name;
  • featured_image;
  • meta name="…";
  • image_from_meta name="…";
  • gallery meta_name="…";
  • posts_nav;
  • icon;
  • translatable_string;
  • conditional if / else blocks.

Optional values need a condition or fallback. Password-protected content retains the WordPress password form instead of leaking the protected body through a fallback.

Example

<article>
  {{featured_image}}
  <h1>{{title}}</h1>
  {{content}}
</article>

Use meta only for a known field owned by the content model. Match the rendering helper to the value: a plain meta value is not interchangeable with an attachment ID, gallery, URL, or reusable-content reference.

Preview a published post with complete data, one with optional data missing, one with a very long title, and a password-protected post. If WooCommerce-specific output is used, also test a product with unavailable price/media data and the relevant product visibility state.

See Single template merge tags for exact attributes and examples.