TangibleInc / template-system

A template system for WordPress with content type loops and conditions
https://docs.loopsandlogic.com/reference/template-system/
8 stars 3 forks source link

Taxonomy term loop: foreach argument must be of type array|object, int given #97

Closed eliot-akira closed 7 months ago

eliot-akira commented 7 months ago

From: https://discourse.tangible.one/t/foreach-error-in-taxonomy-term-index-php/1218/3

Template:

<If archive="taxonomy">
  <If check="{Get local=separator}" is value="yes"> : </If><Term title />
</If>

PHP warning:

warning: foreach) argument must be of type array|object, int given in …/wp-content/plugins/tangible-loops-and-logic/vendor/tangible/template-system/loop/utils/args.php on line 86
warning: foreach) argument must be of type array|object, int given in …/wp-content/plugins/tangible-loops-and-logic/vendor/tangible/template-system/loop/types/taxonomy-term/index.php on line 222