
Return Submenu function
By: a guest on
Feb 22nd, 2011 | syntax:
PHP | size: 1.39 KB | hits: 100 | expires: Never
global $post;
global $query_string;
$pg_title = get_the_term_list($post->ID,'ingredient', '', ', ', '');
$posts = query_posts($query_string . '&orderby=title&order=asc');
$term = $this->return_term_name();
get_header();
?>
<div id="content-inner">
<?php get_sidebar(); ?>
<div class="data">
<div class="data-intro" id="receipe2">
<h1>Ingredients -> <?php echo $this->return_term_name(); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post box-info" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(86,130)); ?></a>
<div class="the-content">
<h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?> <a href="<?php the_permalink() ?>">See more »</a>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php previous_posts_link('« Go Back ') ?></div>
<div class="alignright"><?php next_posts_link(" More $term »") ?></div>
</div>
<?php else: ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div></div></div>
<?php get_footer(); ?>