Posts: 10
Threads: 5
Joined: Feb 2014
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!
Posts: 6,267
Threads: 182
Joined: Sep 2011
Try incognito mode to be sure
Posts: 10
Threads: 5
Joined: Feb 2014
2017-03-09, 01:23:06
(This post was last modified: 2017-03-09, 01:34:46 by soundbwoy.)
(2017-03-08, 11:27:03)shawn_a Wrote: Try incognito mode to be sure
Hi Shawn,
Content still showing?
Posts: 3,491
Threads: 106
Joined: Mar 2010
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)
Posts: 6,267
Threads: 182
Joined: Sep 2011
ah i failed to read properly
Posts: 10
Threads: 5
Joined: Feb 2014
(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!