Advertisement:

Author Topic: Personal category [SOLVED]  (Read 2149 times)

nikar

  • Newbie
  • *
  • Posts: 12
Personal category [SOLVED]
« on: May 03, 2018, 01:09:37 am »
Would like to add Personal category
however would like prevent Ads in Personal category
from being displayed Latest Items view on Main Page
Q. does anyone know how  to achieve this ?

Kind Regards
nik
« Last Edit: May 03, 2018, 10:14:57 pm by nikar »

WEBmods

  • Hero Member
  • *****
  • Posts: 936
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Personal category
« Reply #1 on: May 03, 2018, 01:32:53 am »
Hello,

You would need to change your latest items template in your theme's folder. Something like this would do the trick:

Code: [Select]
<?php
if(osc_item_category() == "YOUR_CAT_ID") {
    continue;
}


Regards.

nikar

  • Newbie
  • *
  • Posts: 12
Re: Personal category
« Reply #2 on: May 03, 2018, 03:40:38 pm »
Thanks sooooooooooooo very much . You are brilliant . It worked !

WEBmods

  • Hero Member
  • *****
  • Posts: 936
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Personal category
« Reply #3 on: May 03, 2018, 06:31:11 pm »
No problem. :) Please add "SOLVED" to the title of the thread.

Regards.