Use the Query API to fetch a list of tags that match the provided slugs.
<?php
$tagQuery = new \Groundhogg\DB\Query\Table_Query( 'tags' );
$tagQuery->where()->in( 'tag_slug', [
'tag1',
'tag2',
'tag3',
] );
$tags = $tagQuery->get_objects( \Groundhogg\Tag::class );
Was this helpful?
Let us know if this document answered your question. That’s the only way we can improve.
