0

I am trying to display a series of entries ordered by subcategories using a category segment

{exp:gwcode_categories cat_id="{last_segment_category_id}" last_only="yes" style="linear"}
<h2>{cat_name}</h2>
{exp:channel:entries dynamic="yes" channel="work" status="not Closed" sort="asc" category="{cat_id}"}
{title}
{/exp:channel:entries}
{/exp:gwcode_categories}

But I can only get the cat_names to appear, I cannot get the entries to appear.

1 Answer 1

2

I never used this addon, but looks like a parsing order issue. Set the parameter parse to "inward".

{exp:gwcode_categories cat_id="{last_segment_category_id}" last_only="yes" style="linear" parse="inward"}
    <h2>{cat_name}</h2>
    {exp:channel:entries dynamic="yes" channel="work" status="not Closed" sort="asc" category="{cat_id}"}
        {title}
    {/exp:channel:entries}
{/exp:gwcode_categories}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.