Порядок вывода записей в рубрике

Каким образом регулируется порядок вывода записей в рубрике? Т.е. как можно организовать вывод в алфавитном порядке согласно названию темы? Или как выводить первыми самые старые записи?

http://codex.wordpress.org/Template_Tags/get_posts

Parameters

numberposts 
    (integer) Number of posts to return. Defaults to 5. 
offset 
    (integer) Offset from latest post. Defaults to 0. 
category 
    (integer) Only show posts from this category ID. There is no default. 
orderby 
    ("string") Sort Posts by one of various values, including:

        * 'post_title' - Sort alphabetically by Page/post title (Default).
        * 'post_date' - Sort by creation time.
        * 'post_modified' - Sort by time last modified.
        * 'ID' - Sort by numeric Post ID.
        * 'post_author' - Sort by author numeric ID.
        * 'post_name' - Sort alphabetically by Post slug.
        * Note: The orderby value can be the name of any field in the wp_post table. 

order 
    (string) Sort order for options. Valid values:

        * 'ASC' - Sort from lowest to highest (Default).
        * 'DESC' - Sort from highest to lowest.

Все здорово, но это не для чайников 🙂 В каком файле надо вносить изменения и что делать, если в одной рубрике нужен один вид сортировки, в другой – другой?

Anonymous
Отправить
Ответ на: