AJAX Load More’s Custom Fields (Meta Query) parameter is not working
-
ALM version: 2.13.1
WordPress version: 4.7Hi @dcooney,
Thank you very much for this very nice plugin ^^. I almost always use this when needed.
I found the “Custom Fields (Meta Query)” part of ALM is not working correctly on Taxonomy page. It works on other page (tried to put on home page, and it works!)Just small info, i use a
taxonomy-vacancy_category.php
template onmysite.com/vacancy-category/vacancy-it/
page. There’s no problem on template thing.In case you want to re-produce the issue, from the shortcode builder:
- Select custom post type
- Select the Custom Fields (Meta_Query) part
Sample of generated shortcode:
[ajax_load_more post_type="vacancy" meta_key="vacancy_category" meta_value="3" meta_compare="=" meta_type="NUMERIC"]
Try to put this on taxonomy page.This doesn’t work. For
meta_compare
,IN
operator doesn’t work too. Then i tried to use this argument on regularWP_Query
(without the plugin) and it works!Not sure what causes this. ALM requests to
admin-ajax.php
, i think it should not be polluted by taxonomy thing :-/. And also ALM returns thepostcount
as 2. But with emptyhtml
.Note:
It’s not “totally not working”, since ALM still returns this response in the Network panel:
{"html":"","meta":{"postcount":2,"totalposts":2,"debug":false}}
Thanks,
Bagus
- The topic ‘AJAX Load More’s Custom Fields (Meta Query) parameter is not working’ is closed to new replies.