• Situation:
    I’ve got 3 theme files:

    1. functions.php
    2. single-advocaten.php
    3. taxonomy-rechtsgebieden.php

    1. The functions.php contains:

    [code moderated – please use the pastebin]

    2. The single-advocaten.php contains:

    <section>
    <h3>Mijn Rechtsgebieden</h3>
    <?php echo get_the_term_list( get_the_ID(), 'rechtsgebieden', '<section class="meta rechtsgebieden">', '<br />', '</section>' ); ?>
    </section>

    3. The taxonomy-rechtsgebieden.php contains:

    <section>
    <h3>Onze advocaten</h3>
    <ul>
       <li>
             <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
             <?php echo get_the_post_thumbnail( $id, array(150,150) ); ?>
             </a>
       </li>
    </ul>
    </section>

    ///////////////////////////////////////////////////////////////////////////////

    Explanation situation:
    There are “advocaten” (lawyers) with one or more “rechtsgebieden” (jurisdictions).
    The Lawyers are placed in the custom post type “advocaten” with one or more jurisdictions as custom taxonomy “rechtsgebieden”.
    These jurisdictions are linked in the Lawyers page to the taxonomy template.

    In the taxonomy jurisdictions template (taxonomy-rechtsgebieden.php), is just 1 thumbnail with permalink visible.

    ///////////////////////////////////////////////////////////////////////////////

    Looking for solution:
    The Jurisdictions template (taxonomy-rechtsgebieden.php) has to show all the related thumbnails of the post type Lawyers (single-advocaten), instead of just one.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘taxonomy template not showing all related post type thumbnails’ is closed to new replies.