<p>This should work:</p>

<pre><code>{% set careers = craft.entries.section('careers') %}

{% if not careers|length %}
    {% exit 404 %}
{% endif %}
</code></pre>

CC BY-SA 3.0
2015-11-27T19:10:40.590Z
2015-11-27T19:10:40.590Z
carlcs
<p>How can I get a specific single (careers) with status live in twig?</p>

<templating><entries><singles><status>
How to get specific single with status live
# How to get specific single with status live

(Asked by: username_0 on 2015-11-27)

How can I get a specific single (careers) with status live in twig?

**Tags:** templating, entries, singles, status

---

## 1 answers

### Answer by username_1 on 2015-11-27. Score: 1 | Accepted answer

This should work:
{% set careers = craft.entries.section('careers') %}

{% if not careers|length %}
    {% exit 404 %}
{% endif %}


---

