Ready to get started?Download WordPress


How to check and show content in page and child pages? (1 post)

  1. MrRoman
    Posted 1 year ago #


    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 {

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

    P. D.: Excuse my english :)

Topic Closed

This topic has been closed to new replies.

About this Topic