• Hello,
    I’ve parent page “menu”, it’s child-page “sub-menu” and it’s child page “child-menu” like this: menu>sub-menu>child-menu.

    Let’s say I’ve one page called “Country” and it’s child pages are “Europe”, “Asia”, “Africa” and again “Europe” has its child page “America”, “England”. Some of these pages contain child page and some doesn’t. I’ve added one custom field called “image” on each page.

    What I want to do is get the content and image of only those pages which has it’s custom image field. If it’s custom image field is empty then it shouldn’t be displayed.

    I need this code on my sidebar. The image should be displayed randomly. I hope I’ve made the question clear.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get the custom image of child pages?’ is closed to new replies.