Answers.Body: <p>This should work:</p>
  
  <pre><code>{% set careers = craft.entries.section('careers') %}
  
  {% if not careers|length %}
      {% exit 404 %}
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-27T19:10:40.590Z
Answers.LastActivityDate: 2015-11-27T19:10:40.590Z
Answers.UserDisplayName: carlcs
Body: <p>How can I get a specific single (careers) with status live in twig?</p>
  
Tags: <templating><entries><singles><status>
Title: How to get specific single with status live
ThreadText: # 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 %}
  
  ```
  
  
  ---
  
  