I am having so much trouble wrapping my head around Stash and the parse order. I'm trying to clean up my code and work with the DRY principle.
I have my layout and view working and pulling in my main content.
I'm stuck on the nested entries aspect of Stash and was hoping that someone would be able to help me out or point me in the right direction.
I know Stash doesn't not allow embeds but I don't know how to work within the system to accomplish what I did previously with only embeds.
Necessarily there will be more than one blog entry and almost always more than one related author id.
My view:
{embed="_layouts/_index"}
{exp:stash:set name="content"}
{exp:channel:entries channel="blog" limit="5" disable="categories|category_fields|member_data|pagination|trackbacks"}
<h3 id="{url_title}" class="article-title"><a href="{page_url}">{title}</a></h3>
{blog_entries_body}
<div class="related-author clearfix">
<ul>
{embed="_widgets/_related_author" entry_ids="{blog_entries_author:child_ids}"}
<li class="pub-date">{blog_entries_publish_date format="%F %j, %Y"}</li>
</ul>
</div>
</div>
{/if}
{/exp:channel:entries}
{/exp:stash:set}
My Embed:
{exp:channel:entries channel="contributors" fixed_order="0|{embed:entry_ids}" disable="categories|category_fields|member_data|pagination|trackbacks"}
<li class="bio-name"><a href="{page_url}">{title}</a></li>
{/exp:channel:entries}
Any help would be greatly appreciated.