PHP - detect if current page is static

Post Reply
rahuldottech
Ssr. Bludit
Posts: 27
Joined: Fri Sep 22, 2017 8:13 pm

I'm writing some custom code for my blog's sidebar, and I need to check if the current page being viewed is static. I'm sure this a super simple if condition, but I can't figure it out. Any help?
User avatar
bayerberg
Master Bludit
Posts: 141
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 7 times
Been thanked: 10 times
Contact:

yep, its very simple ;)

Code: Select all

if ($page->isStatic()) { }
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
rahuldottech
Ssr. Bludit
Posts: 27
Joined: Fri Sep 22, 2017 8:13 pm

Haha, thanks!
Post Reply