• How can I display all the post titles from a specific category on a page?

    I’m building a music website. Every band is presented in a post and those posts are categorized by alphapets. For example, post “Aerosmith” is categorized under “A”.

    Now, I want to list all the bands on one page like this:

    A)
    – Aerosmith
    – Alice in chains

    B)
    – Backyard babies
    – Beatles
    etc.

    How can that be done?

Viewing 1 replies (of 1 total)
  • So have you actually added the category ‘A’ and put ‘Aerosmith’ in that category?

    If so try –

    <?php
    $args = array(
        get_query_var('taxonomy') => get_query_var('term'),
    );
    query_posts($args);
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘all post titles from a specific category’ is closed to new replies.