Hello. Thank you for contacting the Toolset support.
That is really strange.
Can you please share problem URL where you added your view as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The issue was - you have added the following code to "Custom Code" section offered by Toolset with the code snippet "display-pending":
=> versteckter Link
function ts_filter_query( $query_args, $view_settings, $view_id ){
if ( $view_id == '867' or '879' or '881' )
{
$query_args['post_status'][] = 'pending';
}
return $query_args;
}
add_filter( 'wpv_filter_query', 'ts_filter_query', 101, 3 );
I found the above code is added incorrectly. I've corrected it as given under and saved the code snippet:
function ts_filter_query( $query_args, $view_settings, $view_id ){
if ( $view_id == '867' or $view_id =='879' or $view_id =='881' )
{
$query_args['post_status'][] = 'pending';
}
return $query_args;
}
add_filter( 'wpv_filter_query', 'ts_filter_query', 101, 3 );
Can you please check now and confirm it works as expected:
- versteckter Link