I have an Entries field so I can select a number of posts to feature in a "Hero" section on the home page, as well as a "most popular" section underneath it.
However, the Hero posts keep showing up in this section, so I'd like to exclude them from the query.
Is there a way I can get the array of entry id's from the Hero section and insert it into the popular query?
Am using the Trendin Posts plugin (https://github.com/madebyraygun/trending-posts) to get the popular posts.
{% set entries = craft.entries().section('news').limit('4').orderBy('popular').all() %}
and I would like...
{% set entries = craft.entries().section('news').limit('4').orderBy('popular').id('not', {array of IDs from Hero}).all() %}