Hi, and thank you for reply!
Yes, when i put post ID, i get result, it works.
But without ID it does not work.
But i am using Exec-PHP plugin for inserting php in wordpress and i think it’s the problem with that plugin since the code works in normal php file.
Thank you very much!
Best regards,
Ivanko