Skip to content
Discussion options

You must be logged in to vote

You are right at this time the query use the IN() operator so logical OR, you can see the same behavior in Content > Articles in Joomla administrator see

if ($tag && \is_array($tag)) {
$tag = ArrayHelper::toInteger($tag);
$subQuery = $db->getQuery(true)
->select('DISTINCT ' . $db->quoteName('content_item_id'))
->from($db->quoteName('#__contentitem_tag_map'))
->where(
[
$db->quoteName('tag_id') . ' IN (' . implode(',', $query->bindArray($tag)) . ')',
$db->quoteName('type_alias') . ' = ' . $db->quote('com_content.article'),
]

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by HuynhMi
Comment options

You must be logged in to vote
1 reply
@HuynhMi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants