I have the following code below using wordpress however I wanted to do something with it. The navigation uses categories and pages.
- Arrange the navigation anyway i want and display a different image for every category or pages.

<div id="nav">
		<ul>
			<li<?php if(is_home()) echo ' class="current-cat"'; ?>>
                           <a href="<?php bloginfo('url'); ?>">Home</a>
                        </li>
			<?php 
				if(is_home()) wp_list_categories('title_li='); 
				else if(in_category(1)) wp_list_categories('title_li=&current_category=1');
				else if(in_category(3)) wp_list_categories('title_li=&current_category=3'); 
				else if(in_category(5)) wp_list_categories('title_li=&current_category=5');
				else if(in_category(6)) wp_list_categories('title_li=&current_category=6');
				else if(in_category(7)) wp_list_categories('title_li=&current_category=7');
				else wp_list_categories('title_li=');
			?>
			<?php wp_list_pages('title_li='); ?>	
		</ul>
		<div class="clear"></div>
	</div>
	<div id="banner">
		<img src="IAMGE URL" />
	</div>
    18 days later

    You'll probably need to ask a Wordpress group or forum. Wordpress uses PHP, but it's a highly customized application. Unless someone here has a good grasp on the inner workings of Wordpress, you won't find anyone willing to take your question.

    For example, the following are custom functions, not PHP functions: is_home(), bloginfo(), wp_list_categories(), in_category(), wp_list_pages() ... unless I'm totally out of the loop (haven't been around programming much lately), that's every function in the PHP code.

      Write a Reply...