Pergunta

I have a custom query that I created to display the team members of a company, but my client has asked whether they can have control over the order in which each team member is displayed. Is this possible?

At the moment, the default display is to order by date, but it would be great if you could actually control the order of custom post types in a query, within the admin area.

<?php while ($teamFeed->have_posts() ) : $teamFeed->the_post(); ?> <div class="container"> <a class="thumbnail" style="text-decoration: none;" href="#thumb"> <?php if (has_post_thumbnail( $post->ID )): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?> <img src="<?php bloginfo('template_directory'); ?>/thumbs.php?src=<?php echo $image[0]; ?>&w=95&h=107&zc=1" alt="<?php the_title(); ?>" /> <p style="color:#DCDADA;padding:0 0 15px;font-size:11px;line-height:1.4em;"> <?php the_title(); ?> <br /> <?php meta('position'); ?> </p> <?php endif; ?> <span> <h1><?php the_title(); ?></h1> <?php the_content(); ?> </span> </a> </div> <?php endwhile; ?>

Thanks

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a wordpress.stackexchange
scroll top