Site icon Hip-Hop Website Design and Development

Methods to show Associated Posts based mostly on variety of taxonomy phrases matched

I’ve a customized post-type ‘Information’ which has a number of customized taxonomies ‘news-category’, ‘news-tags’. Every publish incorporates between 4-8 ‘news-tags’ and 1 ‘news-category’.

For my present publish, I would prefer to show associated posts based mostly on frequent ‘news-tags’ phrases added to my present publish, whereas additionally matching the ‘news-category’ time period.

So, I would just like the associated posts to search for posts of the identical ‘news-category’ with essentially the most variety of ‘news-tags’ phrases in frequent and show them in descending order.

If I have been to show 4 associated posts:

and so they’d all belong to the identical ‘news-category’.

Would it not be potential to do that? I’ve actually been battling this so I will respect any assist.