These forums are not for official support. If you are looking for official support please click here.
You are here: Home :: Forum Home :: Modules :: Tagger :: Thread
I’m trying to create page that shows entries from multiple categories, for example a “Specials” category that includes a few sub categories. The documentation hasn’t helped to explain if this is possible.
I tried creating a group, and adding multiple tags into that group, but it doesn’t do what I expect. I’d like to filter categories down to a few specific ones, I expected that was possible with a pipe, i.e:
{exp:tagger:entries_quick tag=“tag_name_1|tag_name_2”} but this doesn’t work either. I’m a bit confused as to how I’m supposed to do this.
Has anyone figured this out?
-Matt
Matt,
The entries_quick does not support | for multiple tags, you will most likely need to use the heavier exp:tagger:entries tag to get multiple.
Now you use the word “Categories” not sure what you mean here. Tagger supports “groups” that allows tags to be displayed in groups. Not sure what you mean about ‘sub-categories’.
Brad
Hi Brad,
Thanks, the the tagger:entries tag worked to show entries tagged with multiple tags (easily the most repetitive sentence of my day). However it didn’t work as expected until I wrapped the entries tag {exp:tagger:entries tag=“tag1|tag2”} around my normal blog channel output tag {exp:channel:entries, etc} and included the tag entry_id={tagger:entry_id} into the channel call. Once I did that I was able to get everything I needed, including my matrix output.
Thanks again. my code for getting everything is here for anyone else.
{exp:tagger:entries tag="tag1|tag2|tag3"}
{exp:channel:entries channel="blog" entry_id="{tagger:entry_id}" limit="10" paginate="bottom" dynamic="off" custom_fields="blog_images_top|images"}
<article>
<h3><a href="{title_permalink=">{title}</a></h3>
{blog_images_top limit="1"}
{image}
{/blog_images_top}
{post_summary}
</article>
{/exp:channel:entries}
{/exp:tagger:entries}
Just to note you do not need the custom_fields in the entries tag. Also, I would add disable=“pagination|member_data|categories” to lighten the query.
Brad