Forum Replies Created
-
AuthorPosts
-
tavy87
ParticipantOk thanks for the response. I have a separate question then:
I’m using the live search with frontend filters, and a custom vertical.php for the search results. I’m currently using ACF in the search results, but I’d like to show 1 of 2 ACF field values depending on one of the frontend filters. I’m unsure how I can access the current search variables from vertical.php. I’m not seeing anything in s_options that would help. Any ideas?
Thanks
March 9, 2019 at 9:21 pm in reply to: How to add a true/false option "Sort by custom field date"? #21538tavy87
ParticipantI also know I can modify the user_registered field with my custom date data, and then use the sort by date feature in Ordering. The main issue with this is I don’t know how to have a frontend search field to toggle it on and off. (Also I don’t want to keep overwriting the user_registered field with my custom data). Any thoughts would be appreciated!
February 28, 2019 at 10:17 pm in reply to: Keydown and Keyup not working as expected in Vertical mode #21328tavy87
ParticipantThank you! I wasn’t sure if it was because I customized the vertical template or not, but that makes sense that it only seems to be an issue at high viewport sizes. Do you know when you expect the fix to occur approximately? I don’t mind waiting, I just want to be aware of when I should test it again.
Thank you
tavy87
ParticipantMy bad, I realize I’m actually using a Dropdown with Multiselect set to true to simulate checkboxes. This is due to the fact the styling of checkboxes is cumbersome on mobile. Can the logic for multiselect dropdowns by changed to AND?
Thank you!
tavy87
ParticipantI decided to randomize my results in the following way, I think it works, and I hope it can help others!
add_filter('asp_user_results', 'randomize_results', 10, 2); function randomize_results($user_results, $search_id) { if ($search_id == 1) { shuffle($user_results); } return $user_results; } -
AuthorPosts