Using Categories for the Side Menu
-
I’ve done some heavy editing (a.k.a. amateur hack-and-slash) on the code, and you can see the current version of the site here:
(There are plenty of extra things I’ve done and want to do, but for now I’m just looking to resolve one issue.)
What I want to do is simple enough. Rather than having the menu pull information from the set menus, I just want it to pull from all the categories in the parent category “Writing.” Now, I’ve figured out how to reference that information (just using the category ID), but the formatting breaks and I can’t figure out how to mend it.
Here was my last attempt:
<div id="sidebar-primary" class="sidebar"> <php wp_list_categories('child_of=299'); ?> </div> if ( is_active_sidebar( 'primary' ) ) : ?> <?php do_atomic( 'before_sidebar_primary' ); // oxygen_before_sidebar_primary ?> <div id="sidebar-primary" class="sidebar"> <?php do_atomic( 'open_sidebar_primary' ); // oxygen_open_sidebar_primary ?> <?php dynamic_sidebar( 'primary' ); ?> <?php do_atomic( 'close_sidebar_primary' ); // oxygen_close_sidebar_primary ?> </div><!-- #sidebar-primary .aside --> <?php do_atomic( 'after_sidebar_primary' ); // oxygen_after_sidebar_primary ?> <?php endif; ?>
Well, obviously it didn’t work, and I feel like I’m way off base for finding a fix. Only I don’t even know where to start looking to find a solution. Anyone have a pointer for me?
- The topic ‘Using Categories for the Side Menu’ is closed to new replies.