Menu Close

Get Support From ShopWired Close

All systems fully operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available from 9.00am to 6.00pm Monday to Friday Quickest response time
Send A Message
Response within 24 hours

Menu Close

Menu

Blogs

The blog object has the following attributes:

post.title

Returns the title/name of the blog post.


blog.id

Returns the ID of the blog post.


post.url

Returns the relative URL of the blog post.

{{ post.url }}

returns...

/ten-great-ways-to-clean-your-white-trainers

post.date

Returns the date of the blog post.

Use the date filter to return the date in the required format. You can read more about the date filter here.


post.excerpt

Returns the blog post excerpt (whether it is set automatically or manually).

Use the raw filter so that the variable is not escaped.


post.content

Returns the content of the blog post.

Use the raw filter so that the variable is not escaped.


post.thumbnail.image_url

Returns the URL of the thumbnail image for the blog post.


post.author

Returns the author of the blog post.


post.category

Returns the category object of the blog post.


Blog categories

{% for category in categories %}
    {{ category.url }}
    {{ category.name }}
{% endfor %}

returns...

/blog/how-to-guides
How To Guides

category.url returns the relative URL of the category.

category.name returns the name of the category.


Blog archives

{% for item in archive %}
    {{ item.url }}
    {{ item.name }}
{% endfor %}

returns...

/blog/archive/May-2016
May 2016

item.url returns the relative URL of the archive.

item.name returns the name of the archive.