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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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