Tell us what you are trying to do?
I have two sidebar widgets: one displays my organization's events (Upcoming CSNV Events) and the other displays Upcoming "Other" Events. However, I have one particular "Other" event I need to have displayed under the Upcoming CSNV Events widget. I tried adding the post_id to post__in with a wpv_filter_query but, I can't make it work. Since the View for this widget already contains two filters using AND, I cannot easily add this post_id to the View filter because it would need to be ORed with the other filters.
I have successfully used post__not_in with a wpv_filter_query for not displaying this particular event in its normal widget ("Other").
I have the following non-working filter:
// Upcoming OTHER Events - Show special SV2017 in Upcoming CNSV Events rather than Upcoming OTHER Events
add_filter( 'wpv_filter_query', 'show_special_SV2017_event_func', 10, 3 );
function show_special_SV2017_event_func( $query_args, $view_settings, $view_id ) {
$SV2017x[0] = 22772;
if ($view_id == 623) {
// $query_args['post__in'] = $SV2017x[0];
// echo '<pre>YY'; print_r($query_args['post__in']); echo 'YY</pre>';
}
return $query_args;
}
Hello. Thank you for contacting the Toolset support.
Well - could you please share more information about which category you would like to include and with which view and the problem URL where you would like to display it.
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.