• Resolved dantahoua

    (@dantahoua)


    I think you should change the way you test if meta_value is empty or not… In the function alm_get_meta_query you use if(!empty($meta_key) && !empty($meta_value))
    The problem is that “0” is seen as “empty” witht his function… Or I need to test the string “0” on my website…
    Thanks.

    https://wordpress.org/plugins/ajax-load-more/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dantahoua

    (@dantahoua)

    In fact seems that it do not even enter this function when I have meta_value=”0″… Seems it’s filtered before… Do you have a solution?

    Thread Starter dantahoua

    (@dantahoua)

    Finally, seems there is a bug in Advanced Custom Fields when a value is set to 0… I will change it to another value and it should work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Do not use "Empty" to test meta_value or…’ is closed to new replies.