title: custom taxonomy terms page not found Wordpress
body: <p>I’m getting a Page Not Found message when clicking on the link to display the terms in a taxonomy</p>
  
  <p>Scenario:
  I have a custom post type called "glossary"
  Attached is a custom taxonomy called "section" with the rewrite set to “library/glossary-start-here”</p>
  
  <p>I created a page that lists the terms in the taxonomy. This is a Wordpress page with the slug of “glossary-sections” - the template for the page is set to “taxonomy-section.php”. The page is a child of “library” and so the permalink for the page is “example.com/library/glossary-starts-here/glossary-sections/"</p>
  
  <p>The template “taxonomy-section.php” has the following code:</p>
  
  <pre><code>&lt;?php // Begin header section.
  $argterms=array(
  'include' =&gt;array(
      117,118,115)
  );
  $terms = get_terms('section', $argterms);
  echo '&lt;ul&gt;';
  foreach ($terms as $term) {
  echo '&lt;h3&gt;&lt;a href="'.get_term_link($term-&gt;slug, 'section').'"&gt;' . $term-&gt;name . '&lt;/a&gt;&lt;/h3&gt;';
  }
  echo '&lt;/ul&gt;'; ?&gt;
  &lt;div&gt;
  &lt;?php 
  </code></pre>
  
  <p>When clicking on the link to the page “glossary-sections”, which is used on a number of other pages, I get a page not found message.</p>
  
  <p>I know the template does its job because on some occasions as I've poked around troubleshooting I've had it working. However, I can't find a consistent condition that causes the page to work. I suspect that the problem has something to do with the rewrite but my tests have been inconclusive.</p>
  
  <p>I’d appreciate any suggestions on why this isn’t working and how to correct it.
  I’m particularly puzzled by the fact that I can specify a page like “glossary-section” and yet have it not be found.</p>
  
  <p>Thanks.</p>