I am trying to show tags of the same category under each post. In other words, all the posts shown under a blog post should have the same tag but also belong to the same category as the shown post.
I am using generatepress theme.
I made a post list in wp-show-posts, called Raleted posts. Using the shortcode of this post list and using Elements-hock in generate_before_commen, I want to add related posts so the last 6 posts in the same category as the displayed post are displayed. Currently, using gp_related_posts plugin and bu setting filter by tags or category, I can display related tags but I want to display the shortcode in the desired place.