patriciaC-2
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
I’d like to know how to have a list of 70 items.
Commencé par : patriciaC-2
in: Toolset Professional Support
Problem: The issue here is that our view only allows a maximum of 50 posts per page when using the pagination settings. However this user wanted to increase this to 70. Solution: This can be done by using the code below. Add the following to your Toolset custom code settings at Toolset->Settings->Custom Code. Once you've done this please ensure that you've activated it as well as change the ID 123 to the ID of your view.
//Increase the page limit beyond 50
add_filter( 'wpv_filter_query', 'wpcf_increase_pagination',99,3 );
function wpcf_increase_pagination( $query_args, $view_settings, $view_id ) {
if ($view_id == 123 ) { //Edit
$query_args['posts_per_page'] = 70;
}
return $query_args;
}
|
|
2 | 3 | Il y a 4 years, 6 months | |
|
cred-delete-post on loop item not rendering
Commencé par : patriciaC-2 in: Toolset Professional Support |
|
2 | 4 | Il y a 4 years, 8 months |