Is there a way to get the results of a loop with a filter before the code for the loop is performed in the structure of your code?
My markup is something like this:
<body>
<div>
/* can I use a function to get the results from a loop performed after this point with a filter or hook of some sort */
</div>
<div>
/* a loop/foreach etc. with results I would also like information for above */
</div>
</body>
or would I need to duplicate the loop/foreach or restructure the page to achieve this?