Retired Documentation:  You are using the documentation for version 1.7.3 which was retired in 2013. Go here for the latest version documentation or check here for your available upgrades to the latest version.

Trackback Entries Tag

The Trackback Entries Tag permits you to show all of the received Trackbacks for a given entry.

Note:  The Trackback Entries Tag is intended for use in one of your "single entry" pages.  That is, a page that shows a single, specific weblog entry.  Therefore, your Trackback page must be linked to from within your Weblog entries using the URL Title Path variable or the Entry ID Path variable, so that the Trackback can be associated to a specific entry.  You may also combine Trackbacks and Comments together in an integrated display.

The basic Trackback tag syntax is:

{exp:trackback:entries}

trackback content

{/exp:trackback:entries}

Here is a more complete example:

{exp:trackback:entries}

<h3>{title}</h3>

<p>{content}</p>

<div class="posted">Tracked on: <a href="{trackback_url}">{weblog_name}</a> ({trackback_ip}) at {trackback_date format="%Y %m %d %H:%i:%s"}</div>

{/exp:trackback:entries}

Parameters

limit=

limit="30"

Allows you to limit the number of trackbacks.

orderby=

orderby="trackback_date"

The "order" parameter sets the display order of the entries. Setting options for this parameter include:

If no order is specified, then it will default to "trackback_date".

sort=

sort="asc" sort="desc"

The sort order can be "asc" (ascending order or "oldest item first") or "desc" (descending order or "newest item first"). If you do not use a sort order the default is desc.

Variables

content

{content}

The content or body of the trackback

switch=

{switch="option_one|option_two}

This variable permits you to alternate between any two values as the entries are displayed. The first entry will use "option_one", the second will use "option_two", the third "option_one", and so on.

The most straightforward use for this would be to alternate colors. It could be used like so:

{exp:trackback:entries}
<div class="{switch="one|two"}">
<h1>{title}</h1>
{content}
</div>
{/exp:trackback:entries}

The entries would then alternate between <div class="one"> and <div class="two">.

Multiple instances of the {switch=} tag may be used and the system will intelligently keep track of each one.

title

{title}

The title of the trackback

trackback_date

{trackback_date format="%Y %m %d %H:%i:%s"}

The date on which the trackback was received. As with other date variables, this one requires the "format" parameter in order to define how the date should be displayed. See the date variable formatting page for more information.

trackback_id

{trackback_id}

The ID associated with the trackback

trackback_ip

{trackback_ip}

The IP address of the site that sent the trackback

trackback_url

{trackback_url}

The URL of the entry that sent the trackback. This leads back to the site of the person making the trackback.

weblog_name

{weblog_name}

The name of the site that sent the trackback

Top of Page