<p>Per current conversation on Github, this isn’t possible. <a href="https://github.com/craftcms/cms/issues/2854" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/2854</a></p>
<h3>Update (2021)</h3>
<p>Now supports arrays or <code>*</code> for all sites.</p>
<p><a href="https://craftcms.com/docs/3.x/entries.html#siteid" rel="nofollow noreferrer">Craft 3.x documentation</a></p>

CC BY-SA 4.0
2018-12-23T02:29:59.373Z
2021-10-18T10:13:59.317Z
2021-10-18T10:13:59.317Z
Chattervast
<p>How do I pull in entries from every site? I can't even seem to pass more than one argument to the <code>.siteId</code> parameter:</p>

<pre><code>{% set entries = craft.entries({ 
    section: 'resources', 
    siteId: [1,2,3],
}).all %}
</code></pre>

<p>That gives me the error:</p>

<blockquote>
  <p>Argument 2 passed to craft\services\Elements::getPlaceholderElement()
  must be of the type integer, array given</p>
</blockquote>

<p>I also tried:</p>

<pre><code>{% set entries = craft.entries({ 
    section: 'resources', 
    siteId: craft.app.sites.allSiteIds,
}).all %}
</code></pre>

<p>But got the same error. </p>

<templating><entries><sites>
Get Entries from Every Site
# Get Entries from Every Site

(Asked by: username_0 on 2018-12-23)

How do I pull in entries from every site? I can't even seem to pass more than one argument to the .siteId parameter:
{% set entries = craft.entries({ 
    section: 'resources', 
    siteId: [1,2,3],
}).all %}

That gives me the error:

Argument 2 passed to craft\services\Elements::getPlaceholderElement()
  must be of the type integer, array given

I also tried:
{% set entries = craft.entries({ 
    section: 'resources', 
    siteId: craft.app.sites.allSiteIds,
}).all %}

But got the same error.

**Tags:** templating, entries, sites


---

## 1 answers

### Answer by username_1 on 2018-12-23. Score: 3 | Accepted answer

Per current conversation on Github, this isn’t possible. <https://github.com/craftcms/cms/issues/2854>

### Update (2021)

Now supports arrays or `*` for all sites.

[Craft 3.x documentation](https://craftcms.com/docs/3.x/entries.html#siteid)


---

