Support Forums - Classified Ads Script Osclass

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: casper on August 16, 2018, 03:52:21 PM

Title: Help with code
Post by: casper on August 16, 2018, 03:52:21 PM
Hello

I try to exclude ads from a particular section of the app next to the last ad on the home page, I searched until you found this code and tried to use it, but programming the veronika template is different from the others in some things.

I hope to correct the code or write code that can be used for this purpose.

Code: [Select]
<?php while ( osc_has_latest_items() ) { 
if (
in_array(osc_item_category_id(), array(711238))) continue; ?>

Title: Re: Help with code
Post by: MB Themes on August 25, 2018, 01:26:06 PM
You code is not doing anything
Code: [Select]
<?php 
  
while ( osc_has_latest_items() ) { 
    if (
in_array(osc_item_category_id(), array(711238))) {

    ... 
code ...

    }
  }
?>