Skip to content

rcoll/WP_MLT_Query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

WP_MLT_Query

WordPress "More Like This" Query class for getting highly relevant related posts.

Usage

$mlt = new WP_MLT_Query( array( 
	'p' => 587936, 
	'posts_per_page' => 6, 
	'fields' => 'all', 
));

if ( $mlt->results->have_posts() ) : while ( $mlt->results->have_posts() ) : $mlt->results->the_post();
	the_title(); echo '<br />';
endwhile; endif;

Notes

  • Currently accepts only three arguments: "posts_per_page", "fields", and "p"
  • The arguments should work exactly like WP_Query arguments, but this code is still in alpha

About

WordPress "More Like This" Query

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages