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


This should work:

{% set careers = craft.entries.section('careers') %}

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.