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:
- the primary publish may need 5 ‘news-tags’ phrases in frequent,
- the second publish may need 3 ‘news-tags’ phrases in frequent,
- the third publish may need 2 ‘news-tags’ phrases in frequent,
- and the final publish may need ‘news-tags’ 1 time period in frequent.
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.