Hello,
Thank you for pointing this out. It’s true, the query was using LIKE by default, I changed it to be EQUAL. I’m surprised no one found this before! Please see the newest update.
Hi,
You are most welcome! Btw, you have a great plug-in, IMHO one of the most important plug-ins for advanced WordPress development.
Please keep up the great work, and if you need an additional hand, shout and I will do my best 🙂
Kind regards,
Tony
co-creator of http://purdox.com a free one click Amazon+WordPress solution
Ah, actually wouldn’t it be nice to have the option to use equals and like separately? People can choose between the two, or make it an option value as search type.
search_type = 0 -> Equals to
search_type = 1 -> Use Like to search
search_type = ?
Basically turning the power of SQL queries to the non-programmers’ use.
My 2 cents 🙂
Tony
Oh, yes – I’ll update the documentation, it’s actually possible with the compare parameter:
[loop field="something" value="176" compare="like"]
—
Thank you for the feedback and suggestion. When I started this plugin, I didn’t realize what I was getting into – basically creating another layer over WP_Query, get_post_meta, etc., with a simpler shortcode syntax. Over time, it’s grown to cover many areas, and now it’s pretty useful for templating. It’s been a good learning experience to make sure the plugin runs in different environments and solve common needs.
Purdox looks great! I see it’s an Amazon Machine Image, to simplify hosting WordPress on AWS. I like how the exact steps are described, to make it easy to get started. It feels like a natural progress, that WordPress is riding along with the move towards the cloud and containerization, with Vagrant, Docker, Bitnami, Digital Ocean, etc.