I need to display contents from specific custom post types by filtering them depending on the URL or the Current Post that they are on.
Say the URL is
This Post has a Category: National News
Then the plugin should search for “National News” in other custom post types and display results relating to only ” National News” post from other post types.
The plugin should display content from Other Related Post Types tagged with Category: National News only.
Similarly if the current post has a Category: Global News, then other custom post types and display results relating to only “Global News” post from other post types.