Support » Fixing WordPress » Taxonomy Category Page

  • Resolved squid1974

    (@squid1974)


    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…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    moderator

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

    or

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

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

    This shows nothing!

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

    This works! Thank you!

    Moderator keesiemeijer

    (@keesiemeijer)

    moderator

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxonomy Category Page’ is closed to new replies.