Skip to content
Aram Zucker-Scharff edited this page May 30, 2014 · 5 revisions

PressForward provides a number of built-in template tags to allow theme and plugin developers to better expose the metadata collected by PressForward as part of their sites.

The code behind these tags exists in a dedicated file called template-tags.php.

Template tags in PressForward follow the standard WordPress function-naming-pattern. Functions that start with get return the value, functions that start with the echo the value.

These are the current available template tags:

  • get_the_source_title()

Returns the name of the site that hosted the aggregated item, as listed in that site's feed.

  • the_source_title()

Echoes the name of the site that hosted the aggregated item, as listed in that site's feed.

  • get_the_original_post_date()

Returns the date that the original aggregated item states it was posted on the site's feed. If no date was listed, then it will store the time and date in GMT that the item was retrieved. Item dates are stored in the format retrieved.

  • the_origonal_post_date()

Echoes the date that the original aggregated item states it was posted on the site's feed. If no date was listed, then it will store the time and date in GMT that the item was retrieved. Item dates are stored in the format retrieved.

  • get_the_item_author()

Returns the author listed for the aggregated item in the item's feed. It will be empty if no author was listed in the feed.

  • the_item_author()

Echoes the author listed for the aggregated item in the item's feed. It will be empty if no author was listed in the feed.

  • get_the_item_link()

Returns the URL to the original post.

  • the_item_link()

Echoes the URL to the original post.

  • `get_the_item_feat_image()