I am setting up a contextual filter for several taxonomy fields on a content type that stores my organizations records. I want to present my users with a nice looking url, not the TID. For the contextual filter, I have selected Provide a Default Value and selected Use PHP Code. This is the code:
$term_name = "Open"; $termObj = taxonomy_get_term_by_name($term_name); $term = reset($termObj); return $term->tid;
For now, I'm hard coding the term until I can get it working, then I'll switch it to a term out of the URL. When I save the contextual filter, the preview shows "No query was run". After I save the view and visit the page created by the view, Drupal gives me a Page Not Found message.