wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_random_content_posts_orderby › WordPress Function
Desde7.2.0
Obsoleton/a
› wp_random_content_posts_orderby ( $orderby, $query )
| Parâmetros: (2) |
|
| Retorna: |
|
| Definido em: |
|
| 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 Ver página de detalhe para wp_random_content_posts_pre_query »" href="https://pt.wpseek.com/function/%5Cwp_random_content_posts_pre_query/">wp_random_content_posts_pre_query. Ordering the posts would require the database to sort them. Added to the Ver página de detalhe para 'posts_orderby'} filter by {@see WP::handle_random »" href="https://pt.wpseek.com/function/%26%23039%3Bposts_orderby%26%23039%3B%7D+filter+by+%7B%40see+%5CWP%3A%3Ahandle_random/">'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.