[Theme: Ureeka] how to filter the book genre that show in frontpage
-
I need help to filtering the book genre that i wanna show it off in the front page. how to do that?
p.s i only wanna show one book genre.
here is the website : https://www.risalahpress.comand here is the index.php code:
<?php get_header(); ?>
<?php
if(get_option(‘uree_home’) == “blog”) { ?>
<?php include (TEMPLATEPATH . ‘/lib/blog-home.php’); ?>
<?php } else { ?>
<?php if (function_exists(‘nivoslider4wp_show’)) { nivoslider4wp_show(); } ?><div id=”home-content” class=”clearfix”>
<ul id=”shelf”><?php
$home_count = get_option(‘uree_home_count’);
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query(‘posts_per_page=’.$home_count.’&post_type=book’.’&paged=’.$paged);
?><?php query_posts(‘book_genre=16’); ?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<li class=”box” id=”post-<?php the_ID(); ?>”>
<div class=”postim” id=”post-<?php the_ID(); ?>”>
<div class=”btitle”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
</div>
<span class=”inwriter”><?php $writer=get_post_meta($post->ID, ‘fabthemes_author’, true); echo $writer; ?></span>
“><img class=”bookcover” src=”<?php bloginfo(‘stylesheet_directory’); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=190&w=150&zc=1″ alt=””/>
</div><?php endwhile; ?>
<div class=”clear”></div>
<?php getpagenavi(); ?>
<?php if(function_exists(‘page_navi_slider’)){page_navi_slider();}?>
<?php $wp_query = null; $wp_query = $temp;?></div>
<?php get_footer(); ?>
<?php } ?>Thanks anyway
Fajrul
- The topic ‘[Theme: Ureeka] how to filter the book genre that show in frontpage’ is closed to new replies.