[Need Help] is_page array only work on first array item
-
Hi, I need help,,,
I have conditional tag like this on my template:
if ( is_page(array(493,491,14)) ) { //some code here }
That’s work
Then, I created theme options for page array so the code like this:
if ( is_page(array($page_array)) ) { //some code here }
where, $page_array = trim($options[‘different_page_style’]);
But, it only works on page ID on first array item (493)I checked database for ‘different_page_style’ options and try to echoing, it has all three ID page.
What’s wrong with my code?
Thank’s before
PS: Sorry for my bad English
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Need Help] is_page array only work on first array item’ is closed to new replies.