Skip to content

getBlogTags(int items_per_page)

The getBlogTags method is used to get a BlogTagsList object that represents a list of all blog tags in the storefront.

Input parameters

items_per_page

int Number of items on a page of internal paginator. Parameter is optional. Default value is 100.

Returned value

The BlogTagsList object.

Example

source
{% set tags = ObjectApi.getBlogTags() %}
{% for tag in tags %}
   ID:{{ tag.id }} - {{ tag.name }}
{% endfor %}
output
    ID:1 - Fashion
    ID:2 - Sport