• Hi there,

    trying to build a loop for the category and tag archives and get mixed/fuzzy results. Wonder if my approach is stupid, it currently looks like:

    [loop type=post category=this or tag=this]
    [field title]
    [field excerpt]…
    [field date] // [taxonomy category] // [for each=tag]#[each link][/for]
    [/loop]

    Eg, the loop for http://ronnypries.de/v8/tag/sounds/ works fine.
    http://ronnypries.de/v8/category/journal/ is bogus, paging doesn’t make sense, it’s just 2/14 posts.

    Any input, advice, pointer welcome! 🙂

    • This topic was modified 7 years, 8 months ago by ronny-pries.
Viewing 1 replies (of 1 total)
  • Thread Starter ronny-pries

    (@ronny-pries)

    FYI,

    works now by utilizing the route and passing the tag/category to the loop:

    [if route_1=tag]
    [pass global=route]
    [loop type=post tag='{FIELD_2}]

    [/loop]
    [/pass]
    [/if]

    [if route_1=category]
    [pass global=route]
    [loop type=post category='{FIELD_2}] /

    [/loop]
    [/pass]
    [/if]

    Not sure if that’s the most elegant solution, but it gets the job done.

Viewing 1 replies (of 1 total)

The topic ‘Building an archive loop’ is closed to new replies.