• My Posts Page pulls in all of the posts, which I have setup not to blog, but to post Artist Profiles.

    Every time a new post is created it contains a title, an image & paragraph, a meta tag that contains the Bio, and a Tag that contains Artist’s last name.

    I am trying to pull in the Posts and have them appear alphabetically by Tag. Is this possible? Can someone point me in the right direction?

    I tried using this code:

    <?php if (have_posts()) : ?>
                    <?php $posts = query_posts( $query_string . '&orderby=tag&order=asc' ); ?>
    		<?php while (have_posts()) : the_post(); ?>

    edit: thanks in advance!

Viewing 16 replies (of 16 total)
  • Thread Starter trulyandy

    (@trulyandy)

    <?php next_posts_link('&laquo; Older Entries') ?></div>

    I tried just adding that line in after the `<?php
    endwhile;
    }
    wp_reset_query(); // Restore global post data stomped by the_post().
    ?>`

    It included a link that led to artists/page/2 – which I want, but it just shows the first 5 Artists again (identical to page 1). Any ideas what I would need to add so that each additional page pulls the next 5 from the list, instead of always the same first 5?

Viewing 16 replies (of 16 total)
  • The topic ‘Sort posts alphabetically by tag?’ is closed to new replies.