Find 15 most related posts, then randomize
-
Is there an easy way to find just the 15 most related posts in DESC, then display a subset of those using RAND?
I am using
<?php echo do_shortcode('[related_posts_by_tax post_types="page" format="links" order="RAND" title="" taxonomies="post_tag"]') ?>
to display 5 random “related” results, but they are truly random, sometimes showing posts with just 1 tag in common. I’d rather show random results from the 85th percentile in common or better. Should I be looking at lines 24-30 in shortcode.php, 22-25 in functions.php or is it going to be more custom work?
https://www.ads-software.com/plugins/related-posts-by-taxonomy/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Find 15 most related posts, then randomize’ is closed to new replies.