Just finished a project where I was adding content via one content type and then seperating the display of the content via it's taxonomy term in a view block. I used this piece code from the helpful 'How To' Section:

<?php
  $match = FALSE;
 
  // block is visible on the content types entered here
  $types = array('story' => 1, 'page' => 1);
  $url = request_uri();

  if ((arg(0) == 'node') && is_numeric(arg(1))) {
    $node = node_load(arg(1));
    $match = isset($types[$node->type]);
  }
 
  // block is invisible on URLs entered here
  if (strpos($url, "edit")) {
    $match = FALSE;
  }
 
  // copy paste these for additional URLs
   if (strpos($url, "admin")) {
    $match = FALSE;
  }

  return $match;
?>

This worked for all pages which were created using the same content type but what I couldn't create was for the block to display for the same content type but different taxonomy term? I ended up putting in the urls of eight pages that were of a different taxonomy term into the two blocks that I had used.

Any help in appreciated to adapt the above to add a check for taxonomy term as well, hopefully in an efficient and small code footprint.

regards,

Jon