• 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.com

    and 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fazr

    (@fazr)

    ps. I only wanna show one book genre on the frontpage…

    Can you tell me which version of WordPress are you using ?? And can you tell me where did you download the ureeka theme from ? I seem to have the problem with the theme; something related to meta tags library or something else because of which there is error in the backend as well as the front end.. if possible can you please email me the theme file too? Thanks a lot in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Ureeka] how to filter the book genre that show in frontpage’ is closed to new replies.