WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Taxonomy Category Page (4 posts)

  1. squid1974
    Member
    Posted 2 years ago #

    Hi,

    I have a problem with my taxonomy category page named taxonomy-mytaxonomy.php

    If I use

    <?php while (have_posts()) : the_post(); ?>

    it shows all posts from the taxonomy "mytaxonomy". But I want to change the order.

    So I tried:

    <?php query_posts('post_type=s_schreibberater&order=ASC'); ?>

    But this will show all posts from my custom post type. I don't know how to query all posts of the taxonomy of the category page I am in.

    I hope it's clear what I mean...

  2. keesiemeijer
    moderator
    Posted 2 years ago #

    Have you tried without the custom post type:
    <?php query_posts('order=ASC'); ?>

    or

    global $query_string;
    query_posts( $query_string . '&order=ASC' );
  3. squid1974
    Member
    Posted 2 years ago #

    <?php query_posts('order=ASC'); ?>

    This shows nothing!

    global $query_string;
    query_posts( $query_string . '&order=ASC' );

    This works! Thank you!

  4. keesiemeijer
    moderator
    Posted 2 years ago #

    You're welcome. I'm glad you got it resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic