Skip to content

Metadata

Archetyped edited this page Jul 22, 2021 · 4 revisions

SLB can display virtually all of an item's metadata using template tags. Available metadata will vary by item type (image, video, etc.) and source, though all items should have these common attributes:

  • Title
  • Source URI
  • Permalink

Title Precedence

Since an item's title value can come from various places, SLB has a built-in title precedence that uses the highest-priority value available.

For example, here is the title precedence for image links (ordered from highest to lowest priority):

  1. Manually-set link title attribute
  2. Manually-set caption (i.e. text accompanying thumbnail in post)
  3. Caption field from WordPress' media library
  4. Title field from WordPress' media library
  5. Enclosed image's alt attribute
  6. Link text

Notes

  • Titles are required by WordPress for media added to the library. If a custom title is not set, WordPress generates a default title using the name of the uploaded file (basically the file name without the extension).
Clone this wiki locally