title: How to link child pages in Wordpress to the parent?
body: <p>Odd question and maybe my logic is off on this one, but I have this structure in Wordpress: </p>
  
  <ul>
  <li><p>Page 1</p>
  
  <ul>
  <li>Child page of page 1</li>
  <li>Child page of page 1</li>
  </ul></li>
  <li><p>Page 2</p>
  
  <ul>
  <li>Child page of page 2</li>
  <li>Child page of page 2</li>
  <li>Child page of page 2</li>
  </ul></li>
  </ul>
  
  <p>In my theme I output this as one page per parent.</p>
  
  <p>For example:</p>
  
  <p>The layout is </p>
  
  <pre><code>&lt;h1&gt;title of page 1&lt;/h1&gt;
  &lt;p&gt;content of page 1&lt;/p&gt;
  </code></pre>
  
  <p>After that a few small blocks:</p>
  
  <pre><code>&lt;div class="box first child-page"&gt;
  box with content of child page of page 1
  &lt;/div&gt;
  &lt;div class="box second child-page"&gt;
  box with content of child page of page 1
  &lt;/div&gt;
  &lt;div class="box last child-page"&gt;
  box with content of child page of page 1
  &lt;/div&gt;
  </code></pre>
  
  <p>But; now my problem! When someone uses the search box, The child pages, with their unique permalink are also shown, which is correct, but I need them to link to the parent page. Child pages should not be visited as a unique page, but the content has to be searchable (because, the content does exist on the webpage). Hope you guys understand what I'm trying to tell. I tried to 301 redirect the child pages to the parent page, but I need something easier for my client to be able to create child pages, and not having to worry about 301 redirects.</p>
  
  <p>Regards.</p>