Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active October 25, 2018 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/997fb7203929ecc6cd21cdb5ad88e04c to your computer and use it in GitHub Desktop.
Save billerickson/997fb7203929ecc6cd21cdb5ad88e04c to your computer and use it in GitHub Desktop.
<?php
/**
* Related Posts
* @see https://www.billerickson.net/related-posts-with-searchwp/
*
*/
function be_related_posts() {
if( ! class_exists( 'SearchWP_Related' ) )
return;
$related = new SearchWP_Related\Template();
echo $related->get_template();
}
add_action( 'genesis_after_entry', 'be_related_posts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment