reorder entries by one category but display another category
i'm not sure that this issue is related to the fact that you can only sort by one category because I'm looping through categories that are already in proper order. within each category then I loop through the entries belonging to that category and those entries are sorted with reorder.
here's my code:
{exp:channel:categories channel='team' category_group="4" style="linear"}
<!-- spits out my category headers in proper order. great -->
{category_name}
{exp:low_reorder:entries category="{category_id}" category_group="3|4" set="hierarchy"}
{title}
{position}
<!--here, I'd like to show the category of another category group [3]
but those categories don't show -->
{categories show_group="3"}{category_name}{/categories}
{/exp:low_reorder:entries}
{/exp:channel:categories}
I tried the reorder:entries tag with multiple categories and with and without 'category_group' but no luck.
is there a way to get the entry category from another category group?
Replies
Low 28 Oct 2016 15:14
I'm guessing there's a conflict here with the nesting of the tags. It's not something I'd recommend anyway, see this old blog post: http://gotolow.com/blog/nesting-tags-...
You can try and work around it with an embed: move the LR tag there. Again, not great for performance, but YMMV.
pirco 28 Oct 2016 17:31
thank you. the embed works and I might keep it because the number of entries are always going to be about 30something. but I'll likely convert to your PHP solution once I have time :-)
thankss again.