wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_random_content_posts_orderby › WordPress Function
Depuis7.2.0
Dépréciéen/a
› wp_random_content_posts_orderby ( $orderby, $query )
| Paramètres: (2) |
|
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: |
Removes the order of the random content query.
The random content query is limited to random post IDs, one of which is selected once the query has run, see wp_random_content_posts_pre_query. Ordering the posts would require the database to sort them. Added to the 'posts_orderby'} filter by {@see WP::handle_random while the random content query runs. Enforcing the order in SQL prevents {@see 'pre_get_posts'} callbacks setting the order of posts on archives from affecting the selection.