Forums

How To Display via Parent category code but show children categories? (1 post)

  1. arcab4
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.