Viewing 2 replies - 16 through 17 (of 17 total)
  • I don’t know if what I will tell you will answer the problem but maybe…

    Just copy this line on the “archive-team.php” file on line 47:

    <div class="team-pl cf">
                    <?php query_posts('post_type=sp_staff&posts_per_page=-1'); if (have_posts()) : while (have_posts()) : the_post(); ?>
                        <div class="col-2">
                            <?php if(get_the_post_thumbnail($post->ID,'wp-post-image')){echo get_the_post_thumbnail($post->ID,'wp-post-image');}else{echo '<img src="https://placehold.it/157x177&text=No Thumb">';} ?>
                            <div class="player-name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><p><?php echo ale_get_meta('team_position'); ?></p></div>
                        </div>
                    <?php endwhile; else: ?>
                        <?php ale_part('notfound')?>
                    <?php endif; wp_reset_query(); ?>
                </div>

    Hi

    I ended up solving the problem using Advanced Custom Fields, and pulling into a new team template.

    it worked really well doing it this way, and I had more control over what I could allow the managers etc to place into their text.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Adding Staff Details to Team Page’ is closed to new replies.