I’m trying to filter the taxonomy list in the image (knipsel) to only make it show the tag that is equal to the current posts_id. For example: if the post_id of a post is 10586 then in the list it should only show the tag 10586.
Project_tag is an ACF taxonomy field which is placed in the form suggested-items. I placed the shortcode of the form in a shortcode element (from elementor) to get the list of tags in the image (knipsel). shortcode name is suggested-items
In functions.php I tried the following code to filter the output of the shortcode: