Advertisement:

Author Topic: How to limit location details only for select categories?  (Read 396 times)

itcafeonline

  • Full Member
  • ***
  • Posts: 245
How to limit location details only for select categories?
« on: February 19, 2015, 06:18:51 am »
How to limit location details only for select categories? Pointers please

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to limit location details only for select categories?
« Reply #1 on: February 19, 2015, 01:22:37 pm »
Hi

Code: [Select]
<?php
$allowed_cats 
= array(XXYY);

if (
in_array(osc_item_category_id()) {
        echo 
"For this category location is shown";
} else {
        echo 
"Don't show location for this category";
?>


Replace XX, YY etc with some categories Id's

Regards