0
votes

I have the following pages in my WordPress site: Pole Buildings, Metal Buildings, Log Cabins.

For each page, there is an associated image gallery for product photos. I am wanting to set up a menu structure in wp-admin like this:

Pole Buildings
   -> Image Gallery

Metal Buildings
   -> Image Gallery

Log Cabins
   -> Image Gallery

I know how to create menu items in the admin but I can't figure out how to add a functioning parent menu for the specific Pages. Can someone explain how to do this? This question is specific to a WordPress post type of: Page

1

1 Answers

0
votes

Assuming you are using same page template for all the three pages, call the menu and display the image gallery with conditions. i.e.,

if(page_id==[page_buildings_id]){ //display page buildings image gallery}
elseif(page_id==[metal_buildings_id]){//display metal buildings image gallery}
elseif(page_id==[log_cabin_id]){//display log cabin image gallery}