/single.php Secret
Created
May 30, 2023 16:25
Programmatically use SearchWP Related template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This should be within your single.php or other applicable template that has the $post defined | |
$related = new SearchWP_Related\Template(); | |
echo $related->get_template(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment