Showing a block in specific content types and URLs I have a block I want to show in specific content types and some URLs.  

I tried adding the following code.  

  $match = FALSE;
  // block is visible on the content types entered here
  $types = array('story' =&gt; 1, 'page' =&gt; 1);
  $url = request_uri();
  if ((arg(0) == 'node') &amp;&amp; is_numeric(arg(1))) {
    $node = node_load(arg(1));
    $match = isset($types[$node-&gt;type]);
  }
  // block is invisible on URLs entered here
  if (strpos($url, "edit")) {
    $match = TRUE;
  }
  // copy paste these for additional URLs
   if (strpos($url, "taxonomy/term/8")) {
    $match = TRUE;
  }
  return $match;


Is it possible to use wildcard or something to include all the child in this taxonomy, instead of using taxonomy/term/8?
If you want to check all children of specified term below code can help you

first load all children of it ,then check its term ids one by one

$tids=array_keys(taxonomy_get_children(8));
foreach($tids as $tid)
 if (strpos($url, "taxonomy/term/".$tid)) {
    $match = TRUE;
    break;
  }