facewp is a commercial product you should check with the developers for what options they offer. There are filters in WordPress but they are for developing and probably not what you are looking for. Since no one has access to this plugin, It’s unlikely you are going to find a solution. The filters they are using have been developed by the plugin developer and are not part of WordPress’s core. If you have purchase the plugin they should support the plugin and be able to answer any of your questions. You can go to this page support to open a ticket with them.
Uuhhmm no, I am just listing facetwp as example, so u guys know what kind of filter I am talking about. So it’s not really a facetwp problem, and not a support question about facetwp. The filter may look like on this site moviewp.com, but having multiple checkboxes option will be better if possible.
Full disclosure: FacetWP author
Food for thought: just because you can build something, doesn’t mean you should 😎
Rolling your own filtering is akin to reinventing the wheel. It’s going to take tens (hundreds?) of hours for a competent WP dev to build, even for the most basic functionality. And making sure that all inputs are properly sanitized. And dealing with performance issues when you start needing to combine choices or join different tables.
A question to ask yourself is “how much is your time worth”?
Fair bit, I use FacetWP but am capable of writing it myself. I didn’t for the exact reason Matt points out.
At the end of the day, your ‘without a plugin’ is actually ‘how do I write a version of FacetWP as my own plugin’ because the amount of code you’ll need is … monumental.
That said, there is totally worth to be had in learning how all this works 🙂 I recommend starting by looking at things listed at https://wordpress.org/plugins/tags/ajax-filter/ — that will get your brain started on the road to understanding how all this works (and perhaps why they’re all plugins…).
Agreed,
If learning is the end goal, then digging into existing solutions is one of the best ways to learn. That, and experimenting with WP_Query itself.
But if the end goal is “gotta build this site without spending money”, then rolling your own is going to be a lot more expensive in the long run.
Lucius100, I subscribed to this thread as interested in the concept as I need to develop some data filters, but Facet WP is not an option, not because of cost but because I don’t want to build plugin to plugin dependence and want to build a solution specific to my own plugin data. Of course I can hack around, read code etc as any dev can / does but if you come across any neat tutorials, please post back on this thread.
@mgibbs189 I just want a simple filter, facetwp too powerful for me, lol. Learn a few things during quarantine and WFH should be okay.
@alanfuller I bookmark a few articles back then. You can check these out, I didn’t try it yet tho.
https://inspirationalpixels.com/search-results-filter-wordpress/#section-final-code
https://rudrastyh.com/wordpress/ajax-post-filters.html
You can build a very simple, non ajax filter simply with a form for example, I haven’t tested this code just knocked as a quick shortcode it up so may have plenty of errors, but just to give you an idea. Then look at WP Query for args https://developer.wordpress.org/reference/classes/wp_query/
code – https://gist.github.com/alanef/8674d782f64cd3f08ba542b6932c7489
Ok, I shall mark this topic as solved, thanks guys 🙂