Custom fields relation not working as intended
-
Hey!
First of all, thank you for this plugin! It’s super helpful.
I’m currently at version 5.5.4.1 and the plugin works great.
But because it’s an old version and I need the security fixes, I’m trying to update it.
However, after updating to any version from 5.6 onwards I can’t make the
meta_relation
of the shortcode work.For instance, here’s my shortcode:
[ajax_load_more
post_type="post"
posts_per_page="'.$post_quantity.'"
post__not_in="'.implode(",", $displayed_posts).'"
scroll="false"
button_label="Load more"
meta_key="hide_in_home:hide_in_home"
meta_value=":0"
meta_compare="NOT EXISTS:="
meta_type="CHAR:BINARY"
meta_relation="OR"]In 5.5.4.1 it works great: It gets posts that either don’t have the
hide_in_home
custom field or that have it set to false. Updating to any other version makes it only check the second rule, ignoring the first one.From my understanding, the
meta_relation="OR"
should make it check for both rules.Am I missing something? Is this a regression? Any suggestions on a workaround?
Thank you very much
- You must be logged in to reply to this topic.