Search result date
Deprecated in Textpattern 4.8.6 (use the posted tag instead)
Contents
Syntax
<txp:search_result_date />
The search_result_date tag is a single tag. This tag will provide the article posted date as returned by the search function.
Attributes
format="format string"
- Override the default date format set in the Preferences panel.
- Values: any valid strftime string values,
since
,iso8601
(ISO 8601 reference),w3cdtf
(W3CDTF reference), orrfc822
(RFC 822 reference). - Default: the ‘Archive date format’ set in preferences.
Examples
Example 1: Displays the posting date of an article
<h3>
<txp:permlink>
<txp:title />
</txp:permlink>
</h3>
<p>
<txp:search_result_date />
</p>
Used in a search results form, this offers a search result entry comprising a hyperlinked article title, and the date that article was posted. The <txp:search_result_date />
should be replaced with <txp:posted />
: they perform identically.
Other tags used: title, permlink.
Genealogy
Version 4.8.6
Tag support removed - use posted tag instead.