|
Random order in archive view
Started by: matthewW-12
in: Toolset Professional Support
Quick solution available
Problem:
The user would like to have a random order for posts in a taxonomy archive.
Solution:
The archive query is not built using Toolset, we'll need custom code in order to change the order on it.
add_filter('pre_get_posts', 'order_archive_by_title');
function order_archive_by_title($query) {
if ( $query->is_tax( 'practice-area' ) ) {
$query->set( 'orderby', 'rand' );
}
return $query;
}
Relevant Documentation:
https://developer.wordpress.org/reference/hooks/pre_get_posts/
|
|
2 |
3 |
4 years, 11 months ago
matthewW-12
|
|
Problems with views and filters
Started by: frankW
in: Toolset Professional Support
|
|
3 |
10 |
4 years, 11 months ago
Luo Yang
|
|
Need to setup costom map markers based on taxonlmy
Started by: dan-catalinN
in: Toolset Professional Support
Quick solution available
|
|
2 |
5 |
4 years, 11 months ago
dan-catalinN
|
|
the Post type custom filter search is not having any impact on the points displayed on the map
Started by: dan-catalinN
in: Toolset Professional Support
|
|
2 |
4 |
4 years, 11 months ago
Luo Yang
|
|
Using Toolset in Divi for a custom post page template (both latest version)
Started by: Jaime
in: Toolset Professional Support
|
|
2 |
2 |
4 years, 11 months ago
Luo Yang
|
|
margin/padding issues on the grid block
Started by: heinrichT
in: Toolset Professional Support
|
|
3 |
9 |
4 years, 11 months ago
heinrichT
|
|
Adding dynamic link to map pop-up content
Started by: elizabethS-6
in: Toolset Professional Support
|
|
3 |
10 |
4 years, 11 months ago
Luo Yang
|
|
View loop of the categories (taxonomy) of a custom post type in home page
Started by: fernandoV-6
in: Toolset Professional Support
|
|
2 |
3 |
4 years, 11 months ago
fernandoV-6
|
|
Content template not showing for newly created posts
Started by: filipeC
in: Toolset Professional Support
|
|
2 |
5 |
4 years, 11 months ago
filipeC
|
|
Display other custom types for Custom Taxonomies
Started by: janD-6
in: Toolset Professional Support
|
|
2 |
11 |
4 years, 11 months ago
janD-6
|
|
Search dropdown disappears after search
Started by: raphaelM
in: Toolset Professional Support
|
|
2 |
3 |
4 years, 11 months ago
Waqar
|
|
Slideshow not displaying correctly, after upgrade of Toolset Types – how to fix?
Started by: nicolaF
in: Toolset Professional Support
|
|
2 |
7 |
4 years, 11 months ago
nicolaF
|
|
Cannot assign css class to seach and reset button
Started by: Daniel Stadeli
in: Toolset Professional Support
|
|
2 |
3 |
4 years, 11 months ago
Daniel Stadeli
|
|
Custom query
Started by: samuelH
in: Toolset Professional Support
|
|
2 |
2 |
4 years, 11 months ago
Jamal
|
|
Images in tempate do not retain the dynamic link assigned
Started by: michaelR-26
in: Toolset Professional Support
|
|
3 |
4 |
4 years, 11 months ago
Jamal
|