mp5pongo
Forum Replies Created
-
Forum: Plugins
In reply to: Categories as navigationWhen i pasted the code you provided into Dreamweaver CS5, i got a syntax error. I had ago myself with the code you wrote and got it to work.
Here’s what my code looks like now:
<div id="navbar"> <ul class="ot-menu"> <li<?php if (is_home()) { echo " class=\"current_cat\""; }?>><a href="<?php echo get_settings('home'); ?>"><?php _e("Home", 'structuretheme'); ?></a></li> <?php wp_list_categories('title_li=&depth=4&sort_column=menu_order'); ?> </ul> <div style="clear:both;"></div> <ul id="menu"> <li <?php if(is_home()) { ?> class="current-cat"<?php } ?>> </div>It looks a bit messy now! If you could help me make it a bit neater, that’d be great! Most importantly, the code is now working (see http://schristian.eu).
Thanks for your help Woodent!
Forum: Plugins
In reply to: Categories as navigationWhere do i put that exactly?
Here’s is a snippet from navbar:<div id="navbar"> <ul class="ot-menu"> <li<?php if (is_home()) { echo " class=\"current_page_item\""; }?>><a href="<?php echo get_settings('home'); ?>"><?php _e("Home", 'structuretheme'); ?></a></li> <?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?> </ul> </div>Forum: Plugins
In reply to: Tag posts to pageNever mind, i discovered that i can assign posts to categories, and then i displayed categories on the left, which is in itself a navigation…
Now i’m trying to move the categories to navigation area!