Search
Other Articles Anywhere questions
Forum

Exclude current (this) article on tag match

Wally Turnbull's Avatar Wally Turnbull
How do I exclude the current article from those returned on select by tag if the current article contains that tag? Or, how do I simply exclude the current article from matches?
Andrea Malalana's Avatar Andrea Malalana
You can simply add id="!current" to the {articles} tag.

Eg:

{articles tags="Apples" id="!current"}
Wally Turnbull's Avatar Wally Turnbull
Thank you!
Wally Turnbull's Avatar Wally Turnbull
Oops - that seemed so right but it's not working for me. I get the current article which in turn brings in the other matches repeatedly until the limit is reached.

I think my syntax is as you described:

{articles tags="Sites" separator="<hr>" id="!current"}{/articles}

Is there an alternate way I can try?
Wally Turnbull's Avatar Wally Turnbull
It is now working as expected.
Perhaps it was a cache issue as I have not changed the syntax.
Thank you so much for your help.
Wally Turnbull's Avatar Wally Turnbull
Thank you for that link.
articles="!current" is working as expected.
Much appreciated.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription