WordPress.org

Forums

Desigining the Category Page ! Help ! (1 post)

  1. Pradeep Kumar
    Member
    Posted 5 years ago #

    This is my blog's category page !

    http://www.hellboundbloggers.com/category/blogging

    I want this to have only the posts related to blogging category and not others ! I'm not that much familiar with PHP, so I was not able to edit it !

    Here is the code in archives.php

    <?php include(TEMPLATEPATH."/breadcrumb.php");?>

    <?php $recent = new WP_Query("cat=9&showposts=12"); while($recent->have_posts()) : $recent->the_post();?>
    <?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
    " rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" />
    <?php else: ?>
    " rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" />
    <?php endif; ?>
    <b>" rel="bookmark"><?php the_title(); ?></b>
    <?php the_content_limit(200, "[Read more]"); ?>`

    Here what should be the value of cat ? and should I make some more editing ?

    Cheers !
    HellBound Bloggers

Topic Closed

This topic has been closed to new replies.

About this Topic