• I’ve been doing a lot of codex research and I can’t really find anything about this.

    I’ve created a my own search page template but theres some things I want to do it that I’m not aware of how to do. First, the default number of results per page seems to be 10, and I’d like to change that number. Secondly, It seems to list pages in reverse alphabetical order and I want it in regular alphabetical order. How can I change this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter archard

    (@archard)

    Let me correct something, it actually lists the results by order of when they were created, starting with the most recent. I have a plugin installed that searches for pages as well as posts, and I want it to be listed in alphabetical order.

    Thread Starter archard

    (@archard)

    bump for afternoon people

    To help, since I just figured out the answer to this, is redefine your query to be the initial search query plus additional parameters… for example do `<?php $my_query = new WP_Query($query_string.’category_name=shops_and_galleries&showposts=1000&orderby=title&order=asc’); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>`

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