Blog Entry Tag

The blogentry tag is available on any template and loops through blog entries.

Example:

{% blogentries id: "news", category: "attractions, around-town", limit: "2" %}
  <a href="{{ blogentry.url }}">{{ blogentry.title }}</a>
  {{ blogentry.body }}
{% endblogentries %}

Options

id

The id of the blog is in the modules settings. If this is blank it will return blog entries for the entire site.

Examples:

id: "news, tumblelog"
id: "blog"

Category

Category permalinks separated by commas.

Examples:

category: "design, development, life"
category: "technology"

Limit

Numeric value that limits the number of entries returned.

Example:

limit: "10"

Tags

Tags separated by commas.

Examples:

tag: "peanut-butter, jelly"
tag: "sandwiches"

Author

The username of the authors whose blog entries are to be displayed.

Examples:

author: "aboeving, srainey"
author: "nklaiber"

Order

Fields to order the results by. The default is by the id in ascending order. ASC and DESC can be appended to the field names to change the direction of the order.

Examples:

order: "date"
order: "date, title"
order: "title DESC"

Variables

Blog Entry variables can be located here.