Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tinggal paste kode berikut di functions.php theme:
- add_action('pre_get_posts', 'my_pre_get_posts');
- function my_pre_get_posts($query) {
- if ( $query->is_home() && $query->is_main_query() ) {
- $query->set('orderby', 'rand');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement