Osclass Support Forums
Osclass theme support => Gamma Osclass Theme => Topic started by: Luka on December 13, 2022, 09:22:50 AM
-
hello, the loop-single-premium.php file is responsible for displaying premium ads on the main page and formatting. I want to add an element from the Attributes plugin, but it is not displayed. what is the reason please help
-
add element in this format
<?php if(function_exists('atr_show_attribute')) { echo atr_show_attribute(16); } ?>
-
can you help me?
-
@Luka
You must make sure that this function get's osc_premium() instead of osc_item(), because osc_item() is not available for premium listings.
-
please tell me how to solve this problem
-
@Luka
Try this:
<?php
View::newInstance()->_exportVariableToView('item', osc_premium());
if(function_exists('atr_show_attribute')) {
echo atr_show_attribute(16);
}
?>
-
Thank you very much it worked.