Böyle bir şey buldum bunu kendine göre düzenleyebilirsin.
Method 2: Code Your Own Custom Solution
WordPress is an open-source content management system which means that you can take matters into your own hands by adding custom code to its core files. In the grand tradition of doing the bare minimum, we’ll add a simple function to the active theme’s file.
Note: Remember to create a backup of your entire site before you begin.
Login to your cPanel or FTP client and navigate to your active theme’s functions.php file. (It should be in the /wp-content/themes/active-theme directory.
Open the functions.php file in a text editor and add the following lines of code to it:
function change_posts_order( $query ) {
if ( $query-is_home() && $query-is_main_query() ) {
$query-set( 'orderby', 'title' );
$query-set( 'order', 'ASC' );
}
}
add_action( 'pre_get_posts', ' change_posts_order ' );
Save the file and refresh your site’s blog page. You’ll notice that the posts will be sorted by title on the frontend.