× This is the optional category header for the Suggestion Box.

Joomla - Run Jomres shortcodes in Joomla template files

  • Vince Waoll
  • Topic Author
  • Visitor
  • Visitor
1 year 7 months ago #5 by Vince Waoll
There's a feature which you can use to run Jomres shortcodes in Joomla template files.
<?php echo run_jomres_shortcode('{jomres property_widget}'); ?>

This allows you to put Jomres shortcodes directly into template files. If Jomres isn't shown anywhere else on the page, you may need to first include the Jomres framework, which can be done by doing this (ideally in the template's index.php file)
if (!defined('_JOMRES_INITCHECK'))
define('_JOMRES_INITCHECK', 1 );

if (!defined('JOMRES_ROOT_DIRECTORY')) {
if (file_exists(dirname(__FILE__).'/../../jomres_root.php')) {
require_once (dirname(__FILE__).'/../../jomres_root.php');
} else {
define ( 'JOMRES_ROOT_DIRECTORY' , "jomres" ) ;

Please Log in to join the conversation.

© 2021 JomresPlugins.com. All Rights Reserved.

Please publish modules in offcanvas position.