IS there a more efficient way?
-
<?php if(is_page(6) || is_page(12) || is_page(13) || is_page(14) || is_page(15) || is_page(16) || is_page(17) || is_page(18) || is_page(19) || is_page(20) || is_page(21) || is_page(22) || is_page(28) || is_page(29)) {?> <?php wp_list_pages('child_of=28&sort_column=menu_order&depth=2&title_li='); ?> <?php }?>
I’m creating very a specific list of links on my subnav. All the pages below are children of page 28. Is there a more efficient way to write this code then list page after page?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘IS there a more efficient way?’ is closed to new replies.