Tell us what you are trying to do?
I had 2 post-relationship filters running, and once i implemented a select2 style filter on one of them, the PHP code i put in to run 2 post-relationship filters stopped working. and now i tried to revert back to normal select filters but I still can't run 2 post-relationship filters.
Is there any documentation that you are following?
I used this as the framework to create my PHP code:
https://toolset.com/forums/topic/search-filter-with-two-post-relation-ships/
Hello and thank you for contacting the Toolset support.
Toolset Views do not offer two relationships filters for the moment, it can be implemented using custom code, but that's out of the scope of the support forum.
I am willing to take a look at this archive template and try to find out what's not working as expected, but I can't give any promises that we can fix it. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Please provide a test scenario to follow, something like:
1. I go to xxx
2. I do xxx
3. I expect to have xxx
4. Instead, I get xxx
Hello,
Thanks for the details, I can login into your website.
Please point out the problem page URL and view URL, where I can test the result in front-end, thanks
front end page url: hidden link
back end view url: hidden link
if you don't select any options in the drop down, the content will load. once you select an item and press submit, the content in the view loop no longer loads.
I have change the PHP codes of your theme file functions.php line 96~109 to:
function filter_by_parent_services_func( $query_args, $view_settings, $view_id ) {
if ( $view_id ==4860 && isset($_GET['wpv-relationship-filter'][0]) && $_GET['wpv-relationship-filter'][0] != 0) {
if(!isset($query_args['toolset_relationships'])){
$query_args['toolset_relationships'] = array(
array(
'role' => 'parent',
'related_to' => $_GET['wpv-relationship-filter'][0],
'relationship' => 'psychologist-therapy-format'
)
);
}
}
return $query_args;
}
Please test again, check if it is fixed, thanks
My issue is resolved now. Thank you!