Not Solved Header template core file
#1
Not Solved
Hello guys!

If I need a new variable like {$monthsposts} in the header, where should I write the actual  query? I have tried in index.php and in global.php but it isn't working.
So, can someone help me please?
Thanks in advance Smile
Reply
#2
Not Solved
It should work in global.php, but then the code you're using needs to be correct.
Reply
#3
Not Solved
(2016-01-30, 04:24 PM)Destroy666 Wrote: It should work in global.php, but then the code you're using needs to be correct.

It worked in index.php and within index templates though.
Reply
#4
Not Solved
Then your placement in global.php was wrong. You most likely placed it after the template you used it in was evaluated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)