Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/single.php Secret
Last active Oct 25, 2018

Embed
What would you like to do?
<?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
You can’t perform that action at this time.