sage-directives
sage-directives copied to clipboard
Using @field with number as second parameter always returns the string case
I'm trying to get a field of a specific post, but when I use the directive like this @field('location', $element->ID) it returns the get_field function like this:
<?= get_field('location')[3205]; ?>
This happens because when Util::parse($expression); is used, it makes all the parameters to string and the check on line 68 is !is_string() when actually should be is_numeric().