Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't Make Pages Private
#1
Hi Guys,

Here's my dilemma!  I need to make certain pages private that are been used as content in another page (<?php get_i18n_content('page'); ?> but when I set page to private it still shows up, even when I'm logged out!

Please Help!
Reply
#2
Try incognito mode to be sure
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
(2017-03-08, 11:27:03)shawn_a Wrote: Try incognito mode to be sure

Hi Shawn,

Content still showing?
Reply
#4
That's correct, it's how the function works (like GS's getPageContent)

To accomplish what you need, you have to something like
PHP Code:
<?php if (returnPageField('page','private') != 'Y' || is_logged_in()) { ?>
...
<?php get_i18n_content('page'); ?>
...
<?php ?>
(Not tested)
Reply
#5
ah i failed to read properly
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
(2017-03-09, 01:44:35)Carlos Wrote: That's correct, it's how the function works (like GS's getPageContent)

To accomplish what you need, you have to something like
PHP Code:
<?php if (returnPageField('page','private') != 'Y' || is_logged_in()) { ?>
...
<?php get_i18n_content('page'); ?>
...
<?php ?>
(Not tested)
perfect! thank you Carlos and Shawn!
Reply




Users browsing this thread: 1 Guest(s)