Two filters and variable for timestamp
-
Hi,
thank you for this great plugin – a functionality that should actually be found in the core of BuddyPress.I have the following filter function in a directory search.
[bps_directory bp_member_type_one_of='My-MT-Group' AND field_76_range='2024-01-01, 2024-12-31']
I would like to specify a daily filter for the first date field so that “older” profiles are not displayed. Unfortunately, I can only find information for fixed periods in the documentation.
[bps_directory field_76_range='%TODAY%, 2024-12-31']
If such a variable is not implemented, what would a pre-database search look like as a snippet for this plugin in order to then be able to make additional selections using a BPS form?
A simple preliminary search would be like this:
SELECT * FROM wp_bp_xprofile_data
WHERE field_id = 76
AND value >= CURDATE() AND '2024-12-31';In this case, the filter function with the member type would be sufficient!
I would like to thank you in advance for an answer.- BP Profile Search 5.7
WP 6.4.2,
BP 12.2.0 & BP Classic 1.3.0,
PHP 7.4.x, MariaDB 10.x
- BP Profile Search 5.7
- The topic ‘Two filters and variable for timestamp’ is closed to new replies.