Get objects

Examples of fetching various objects within the platform including Blog Posts or Content modules

get_object

This option takes two parameters:

  1. The resource (i.e. content, embed, posts, etc)

  2. The ID of the object you want to load

The below example will grab blog post number 2674060 so you use it within your embed code to output its content HTML.

<div class="example">
{% set post = get_object('posts', 2674060) %}
{{ post.content|safe }}
</div>