This works:
{% set entries = craft.entries({
section: 'listing',
listinglatitudenumber: '>=' ~ pluginResults.latmin
}) %}
But I need to do this:
{% set entries = craft.entries({
section: 'listing',
listinglatitudenumber: 'and', '>=' ~ pluginResults.latmin, '<=' ~ pluginResults.latmax
}) %}
And I cannot for the life of me figure out the correct syntax for this.
I have been trying many different combos for the 'and' statement based on other answers I have seen in the Craft Stack Exchange but have not been successful. I have not been able to find any docs on this type of query.
Any help much appreciated :)
Internal Server Error
A hash value must be followed by a comma. Unexpected token "string" of value ", <=" ("punctuation" expected with value ",").
And I am trying to understand exactly what you mean, and trying to resolve the error, but not successful - could you explain further?
– ironfish Apr 22 '18 at 19:44.with twig~– Robin Schambach Apr 22 '18 at 20:09