Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
check a page is private or not?
#4
@whiteh0rs3

A possible way to check if the current page is private or not:

PHP Code:
<?php if (getPageField(get_page_slug(0),'private') == 'Y'): ?>
... this page is <strong>private</strong> ...
<?php else: ?>
... this page is not private ...
<?php endif; ?>
Reply


Messages In This Thread
check a page is private or not? - by whiteh0rs3 - 2013-04-13, 09:08:01
RE: check a page is private or not? - by Carlos - 2013-04-14, 08:23:37
RE: check a page is private or not? - by shawn_a - 2013-04-14, 08:29:00
RE: check a page is private or not? - by Carlos - 2013-04-14, 16:24:53



Users browsing this thread: 1 Guest(s)