> For the complete documentation index, see [llms.txt](https://docs.devhub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devhub.com/themes-and-custom-templates/advanced-examples/get-objects.md).

# Get objects

## 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.

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