Code for WordPress theme

Just try this piece of code in your wordpress theme and make some alters so that you can get a different theme

Just include this part in your wordpress theme on inder.php and try it out

$category_ids = get_all_category_ids();

foreach($category_ids as $cat_id) {
$cat_name = get_cat_name($cat_id);
echo “<h1>”. $cat_name.”</h1>”;

query_posts( $query_string . ‘&cat=’.$cat_id );

while (have_posts()) : the_post();?>

<div class=”post_list”>
<h3 class=”entry-title”><a rel=”bookmark” title=”<?php the_title(); ?>” href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h3>
<?php the_content();?>


<a rel=”bookmark” title=” ” href=”<?php echo get_category_link($category->cat_ID); ?>”><?php echo $category->cat_name; ?></a>


Good luck…..



About pacesettergraam

A good and realistic person

Posted on April 10, 2012, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: