How to Render a module

How to render a module in Joomla 3 by Position

Here is how you render a module in Joomla 3 based on Position

< ?php
 jimport('joomla.application.module.helper');

$modules = JModuleHelper::getModules('POSITIONHERE');
foreach ($modules as $module) {
echo JModuleHelper::renderModule($module);
}
? > 

Using the above code in any Joomla file, will render the module.

Scroll to Top
I’ve had the great pleasure of hiring JoomDev for several projects over 8 years. The team brought our ideas to life and created the customized application that we only imagined in our minds. We appreciate JoomDev “can do” attitude and co-operation to complete any task until being fully satisfied. Hire JoomDev, you’d be crazy not to!
photo-alex
Alex Shvarts
Fundkite

Contact Sales