Check that index.php
is indeed being used, it’s last resort kind of template when there is no more suitable one.
If you need this in multiple places across the site it might be better to run this in some hook, rather than in template file.
Check that index.php
is indeed being used, it’s last resort kind of template when there is no more suitable one.
If you need this in multiple places across the site it might be better to run this in some hook, rather than in template file.