• Hi,

    i want to show adsense based on certain categories. There’s actually a bunch that are grouped into two parent categories. IT would be easier if i could somehow tell the coding to show adsense on any children categories of the parent category code.

    the code i am using is:
    if (($category->cat_ID) == 339||340) { //

    i don’t want to continue to add || and more categories numbers…any suggestions?

    Thanks!

  • The topic ‘How To Display via Parent category code but show children categories?’ is closed to new replies.