I am trying to create an easy way to make a sticky post on my blog and I am using an entry field within a global.
Not sure where to even start to pull this out in a template.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI am trying to create an easy way to make a sticky post on my blog and I am using an entry field within a global.
Not sure where to even start to pull this out in a template.
You can access and loop the entrie in any template like so:
{% for entry in globalSetHandle.entriesFieldHandle %}
{{ entry.title }}
{% endfor %}
If you want to change the sort order to show the most recent blog post first use the relatedTo parameter:
{% for entry in craft.entries.relatedTo(globalSetHandle).order('dateUpdated desc') %}
{{ entry.title }}
{% endfor %}