Quote:
Originally Posted by Paul M
You cannot put php code in templates - you need to create a plugin for the code and just put the output variable in the template.
|
I see. I tried to read pages about hooks & plugins but is all that really necessary for this matter?
Isn't there any easy way to do this?
Edit: I followed this (
https://vborg.vbsupport.ru/showthread.php?t=82625) guide and made a plugin. It works if I place it in the index.php like Brad did in that guide but when I try to add it to the template where I want it, it just says:
Any ideas?