3

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.

4

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 %}

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.