Don't like ads? PRO users don't see any ads ;-)
Guest

Return Submenu function

By: a guest on Feb 22nd, 2011  |  syntax: PHP  |  size: 1.39 KB  |  hits: 100  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. global $post;
  2. global $query_string;
  3. $pg_title = get_the_term_list($post->ID,'ingredient', '', ', ', '');
  4. $posts = query_posts($query_string . '&orderby=title&order=asc');
  5. $term = $this->return_term_name();
  6. get_header();
  7.  
  8. ?>
  9.  
  10. <div id="content-inner">
  11.  
  12.     <?php get_sidebar(); ?>
  13.  
  14.     <div class="data">
  15.                
  16.             <div class="data-intro" id="receipe2">
  17.                         <h1>Ingredients -> <?php echo $this->return_term_name(); ?></h1>
  18.        
  19.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  20.                        
  21.                 <div class="post box-info" id="post-<?php the_ID(); ?>">
  22.                                 <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(86,130)); ?></a>
  23.                         <div class="the-content">
  24.                                 <h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  25.                                 <?php the_excerpt(); ?> <a href="<?php the_permalink() ?>">See more &raquo;</a>
  26.                         </div> 
  27.                                
  28.                        
  29.                        
  30.                 </div>
  31.                        
  32.                        
  33.         <?php endwhile; ?>
  34.        
  35.         <div class="navigation">
  36.                 <div class="alignleft"><?php previous_posts_link('&laquo; Go Back ') ?></div>
  37.                 <div class="alignright"><?php next_posts_link(" More $term &raquo;") ?></div>
  38.         </div>
  39.        
  40.         <?php else: ?>
  41.                
  42.                 <h2>Not Found</h2>
  43.         <p>Sorry, but you are looking for something that isn't here.</p>
  44.                
  45.         <?php endif; ?>
  46. </div></div></div>
  47.  
  48.         <?php get_footer(); ?>