Quantcast
Viewing all articles
Browse latest Browse all 112696

MrRoman on "How to check and show content in page and child pages?"

Hi

I'm trying to display content in one page and child pages fron these page.

Today, i'm use this code:

<?php if (is_page(array('page', 'page-child1', 'page-child2', 'page-child3'))) { //"Childs from "page"
##The content if is the pages from array
} else {
##Nothing
}
?>

I'm newbie in this, but i'm very interesting to learn.

P. D.: Excuse my english :)


Viewing all articles
Browse latest Browse all 112696

Trending Articles