4

I have the following -

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

{{ press.title }}

If I change the section title in the Sections area of the back end from something like "Press" to "Testimonials" - I still see Press when I call press.title. The section is set to a single.

I've tried clearing cache in the back end which doesn't seem to do the trick. Any advice?

1
  • 1
    Mind adding that as an official answer?
    – Brad Bell
    Commented Sep 22, 2015 at 19:24

1 Answer 1

7

For anyone stuck on this -- when changing a Section's name you have to goto the entry under Entries and hit save. This will update the mysql row / title.

1
  • This makes sense now that I know it, but it's incredibly unintuitive
    – aw04
    Commented Feb 21, 2017 at 21:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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