Home › Forums › Support › sort posts alphabetic This topic has 3 replies, 2 voices, and was last updated 2 years, 3 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 13, 2022 at 7:33 am #2372318 Torsten Hi, hopefully the last question for this project: Is it possible to sort the category posts only for the category-id18 “kuenstlerinnen” (category page link in Private information) in alphabetic order? Thanks ahead, Torsten October 13, 2022 at 8:41 am #2372534 DavidStaff Customer Support Hi there, try this PHP Snippet: function db_abc_modify_query_order( $query ) { if ( $query->is_category( 'your-category-slug' ) && $query->is_main_query() ) { $query->set( 'orderby', 'title' ); $query->set( 'order', 'ASC' ); } } add_action( 'pre_get_posts', 'db_abc_modify_query_order' ); Make sure to update the your-category-slug in the code October 13, 2022 at 8:45 am #2372537 Torsten THANKS! October 13, 2022 at 8:51 am #2372541 DavidStaff Customer Support You’re welcome Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In