# Get Content

It gets content from other entries! Specify a URI or ID and fetch all the data attached to it.


## Overview

This tag lets you fetch data from other entries. It's useful if you need to hard-code some dynamic content in your template.

:::tip
If you're using a fieldtype like [entries](/fieldtypes/entries.md) to select which entries you'd like to render, then you don't even need this tag. You can loop over the selections like this:

::tabs

::tab antlers
```antlers
{{ your_entries_field }}
  {{ title }}, {{ url }}, {{ whatever }}
{{ /your_entries_field }}
```
::tab blade
```blade
@foreach ($your_entries_field as $entry)
  {{ $entry->title }}, {{ $entry->url }}, {{ $entry->whatever }}
@endforeach
```
::
:::

For example, you might want to output some company information from your home page:

::tabs

::tab antlers
```antlers
{{ get_content from="/about/company" }}
  {{ staff }}
    <div class="w-1/3">
      <img src="{{ headshot }}" alt="{{ name }}">
      <p>{{ name }}, {{ job_title }}</p>
    </div>
  {{ /staff }}
{{ /get_content }}
```
::tab blade
```blade
<s:get_content from="/about/company">
  @foreach ($staff as $member)
    <div class="w-1/3">
      <img src="{{ $member->headshot }}" alt="{{ $member->name }}">
      <p>{{ $member->name }}, {{ $member->job_title }}</p>
    </div>
  @endforeach
</s:get_content>
```
::


## Shorthand

You may also use a shorthand syntax, where the second tag argument refers to a variable that contains a URI or ID.

The data:

```yaml
related_by_uri: /about
related_by_id: 123-321-abc-defg123
```

::tabs

::tab antlers
```antlers
{{ get_content:related_by_uri }}
  {{ title }}
{{ /get_content:related_by_uri }}

{{ get_content:related_by_id }}
  {{ title }}
{{ /get_content:related_by_id }}
```
::tab blade
```blade
<s:get_content:related_by_uri>
  {{ $title }}
</s:get_content:related_by_uri>

<s:get_content:related_by_id>
  {{ $title }}
</s:get_content:related_by_id>
```
::
