在代码结构中执行循环代码之前,是否有方法通过过滤器获得循环结果?
我的标记如下:
<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>
或者我是否需要复制循环/foreach或重组页面来实现这一点?