Hi all,
My EE version is 5.1.3
How do I paginate my entries when using {parents} tag?
My code as below:
{exp:channel:entries...}
{parents field="imprint" channel="books" orderby="entry_date" sort="desc" limit="24" paginate="both"}
{paginate}{pagination_links}{/paginate}
{/parents}
{/exp:channel:entries}
I know there is no paginate option in the official doc; but it seems illogical not to have this function in a relationship entries.
I think you may have to pass the entry IDs to a channel entries tag inside an embed, something like this:
{exp:channel:entries...}
{embed='parents_paginate' entry_ids='{parents:entry_ids field="imprint"}'}
{/exp:channel:entries}
And then the channel entries tag inside the embed will handle sorting and pagination.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.