i have a website with Wordpress and Elasticpress up and running.
I want to be able to place a snippet in my template and display related posts, which is a function of Elasticpress.
I want to pass the post_id and post type, number of posts to return as arguments.
as a result I should get a list (loop) with postd related to the post_id filtered by post type and limited to x posts.
to be clear: I want to use it in the post template NOT a widget.
some more info can be found here: [login to view URL]