Call custom module from single template

Posted in: Newspaper
Post count: 85

I’ve added a custom module using the API plugin, but I would like to use it in a single template. Is there a way to do this much like how the related posts module is called in other templates?

For example: $td_mod_single->related_posts

But I want to call the custom module I added named related_ep.

Post count: 22421

Hello,

You can try to call it on posts but it depends on the implementation method. All of the functions called in the loop-single are located either in td_module_single_base/php or in td_module_single.php
You can try the implementation used for the related articles: https://www.screencast.com/t/YWBOdftvRIo
https://www.screencast.com/t/qAT109XVch

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.