<p>From a quick look at the code, I think you can pass <code>enabledForSite: [true, false]</code> to get both the enabled and disabled entries. So in your case:</p>
<pre><code>{% set items = craft.entries({
  section: 'works',
  enabledForSite: [true, false],
  status: [
    'live', 'pending', 'disabled', 'expired'
  ]
}).all() %}
</code></pre>

CC BY-SA 4.0
2020-07-17T13:06:07.010Z
Thank you for answering! However I tried this and it doesn't work. I still get the same results (enabled entries)
Panos Spiliotis
CC BY-SA 4.0
2020-07-15T20:30:30.340Z
2020-07-15T20:30:30.340Z
Marion Newlevant
<p>With the help of Oli from Craft, it turns out the solution is simpler than I thought:</p>
<pre><code>{% set items = craft
    .entries()
    .section('works')
    .anyStatus()
    .all() 
%}

</code></pre>
<p>This returns all entries, enabled and disabled.</p>

CC BY-SA 4.0
2020-07-24T17:29:05.903Z
2020-07-24T17:29:05.903Z
Panos Spiliotis
<p>A Craft (3.4 Pro) website has setup two sites, one for each language. There are entries in a section that are enabled and others that are disabled for each language.</p>
<p>I want to get a list of <strong>all</strong> the entries, regardless of whether they are enabled or not.</p>
<p>I know there is a <code>enabledForSite</code> parameter but this can be set to either <code>true</code> or <code>false</code> but not both.</p>
<p>For example the query below returns only enabled entries.</p>
<pre><code>{% set items = craft.entries({
  section: 'works',
  enabledForSite: true,
  status: [
    'live', 'pending', 'disabled', 'expired'
  ]
}).all() %}
</code></pre>
<p>How can I get a list that contains both <code>enabled</code> <strong>and</strong> <code>disabled</code> entries?</p>

<craft3><craft-pro>
Get entries that are enabled and disabled for the site
# Get entries that are enabled and disabled for the site

(Asked by: username_0 on 2020-07-15)

A Craft (3.4 Pro) website has setup two sites, one for each language. There are entries in a section that are enabled and others that are disabled for each language.
I want to get a list of all the entries, regardless of whether they are enabled or not.
I know there is a enabledForSite parameter but this can be set to either true or false but not both.
For example the query below returns only enabled entries.
{% set items = craft.entries({
  section: 'works',
  enabledForSite: true,
  status: [
    'live', 'pending', 'disabled', 'expired'
  ]
}).all() %}

How can I get a list that contains both enabled and disabled entries?

**Tags:** craft3, craft-pro


---

## 2 answers

### Answer by username_0 on 2020-07-24. Score: 4 | Accepted answer

With the help of Oli from Craft, it turns out the solution is simpler than I thought:
{% set items = craft
    .entries()
    .section('works')
    .anyStatus()
    .all() 
%}


This returns all entries, enabled and disabled.


---

### Answer by username_1 on 2020-07-15. Score: 0

From a quick look at the code, I think you can pass enabledForSite: [true, false] to get both the enabled and disabled entries. So in your case:
{% set items = craft.entries({
  section: 'works',
  enabledForSite: [true, false],
  status: [
    'live', 'pending', 'disabled', 'expired'
  ]
}).all() %}

> **Comments:**
> **username_0**: Thank you for answering! However I tried this and it doesn't work. I still get the same results (enabled entries)  

---

