complex menu coding
-
Hi All,
I have a WordPress website. I want to add menu feature like this website.http://mckinneyyork.com/work/residential/featured-project-images-residential/
Under “WORK” there are 5 sub menus. When any one of these are clicked similar projects under that category are shown in the second column. How do I do that? I know some php and some WordPress codex.
Viewing 1 replies (of 1 total)
-
template code is here
<?php /** * Template Name: Project-template-mastercustom * */ ?> <?php get_header(); ?> <div id="main" class=" container" style="background:#222222;"> <div class="container wrap"> <div class="row smallwrap" style="width:100%; height:auto;"> <div class="col dimfull" style="height:auto;"> <div class="col dim3 pull-left" style=" height:auto; margin-top:0px;"> <ul id="sidebar_custom_menu"> <?php if ( dynamic_sidebar('project_sidebar_menu') ) : else : endif; ?> </ul> <?php // if ( dynamic_sidebar('project_sidebar_menu') ) : else : endif; ?> </div> <div class="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="col dim7 pull-right" id="ajaxloadcustom"> <h2><?php the_title();?></h2> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?> </div> </div> </div> </div> </div> <div class="sugar-container " data-speed="1" data-offsety="0" style=" height:100%;"> <div id="main" class=" container" style="background:#45BBDF"; > <div class="container wrap"> <div class="proj_dscrptn col dim7 pull-right" style="height:auto; float:right; margin-top:30px; margin-right:20px; font-size: 17px; font-family:'Droid Sans', Arial, sans-serif;"> <?php $my_meta = get_post_meta($post->ID,'_my_meta',TRUE); ?> <?php echo '<div style="width:90%; margin:10px 25px -15px 25px;"><h3>' . $my_meta['name'] . '</h3></div>'; echo '<div style="width:90%; margin:25px; height:auto; overflow: hidden; color: #ffffff; font-size: 17px;">' . $my_meta['description'] . '</div>'; ?> </div> </div> </div> </div> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
The topic ‘complex menu coding’ is closed to new replies.