if elseif
-
Hi everybody,
i am starting with php and still so much too learn.I am trying not to create a new template each time i have something new on the page so:
my code is:<?php
if ( is_page(’35’)) {wp_list_pages(‘sort_column=menu_order&depth=1&title_li=<h4>discografia</h4>&child_of=35’);}
elseif (is_tree(’35’)){wp_list_pages(‘sort_column=menu_order&depth=1&title_li=<h4>discografia</h4>&child_of=35’);
}
?>`
and it works well but what if i want put a div id=nav1 and a divid=nav2 to style inch menu in a different way?… In this case i don t know how to concanate the php..it always give me an error…an advice would be very appreciated,
thanks a lot,
cheers,
David
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘if elseif’ is closed to new replies.