I have a snippet which displays all entries within a channel and I want to have displayed entries only from a particular tag, but I'm not able to display tagged entries. Then I have decided to display all tagged entries without limitation (code below) but this is not working either.
{exp:channel:entries channel="products" orderby="title" sort="asc" limit="8" status="open" paginate="bottom" dynamic="no"}
{exp:tag:related_entries}
{if switchee_no_results}
<div class="no-entries"><p>No entries yet.</p></div>
{/if}
<div class="col-md-3 col-sm-6 category-item">
<a href="{site_url}{segment_1}/{segment_2}/{url_title}">
{product_image limit="1"}
<img src="{product_image:image}" alt="{product_image:title}" class="img-responsive">
{/product_image}
<h3>{title}</h3>
</a>
</div>
{switch='|||</div><div class="row row-category">'}
{paginate}
{exp:stash:set}
{stash:pagination_links}{pagination_links}{/stash:pagination_links}
{/exp:stash:set}
{/paginate}
{/exp:tag:related_entries}
{/exp:channel:entries}
Even switching code to
{exp:tag:related_entries channel="products" orderby="title" sort="asc" limit="8" paginate="bottom"}
<h3>{title}</h3>
{tag_paginate}
<p>Page {tag_current_page} of {tag_total_pages}. {tag_pagination_links}</p>
{/tag_paginate}
{/exp:tag:related_entries}
doesn't do anything.
Another simple test - template below
1.
{exp:tag:entries tag="test"}
2.
{if switchee_no_results}
<div class="no-entries"><p>No entries yet.</p></div>
{/if}
<h3>{title}</h3>
3.
{/exp:tag:entries}
is displaying only 1. for me, so it looks like tag
tag is not working withing templates.
Any clue why is not working? I'm running EE 2.7.3 and Tag 4.2.5
Thanks
{exp:tag:entries}
would be the tag to use to display entries associated with a tag: solspace.com/docs/tag/entriestag
is not recognized at all.{exp:tag:entries}
, you must provide a tag either in the URL (with the correct URL "marker" segment, default being/tag/
), or by using thetag=""
parameter. If using{exp:tag:related_entries}
(still not sure why you're using that tag), you need to provide an entry_id through the URL or through theentry_id=""
parameter.tag="test"
and still not getting anything, even2
orNo entries yet
is not displayed. For me it just confirmation that EE tagtag
is not recognized at all.