• Resolved Treebeard

    (@malawimama)


    Hi,
    Does anyone know of a plugin that will enable images for category titles instead of text?

    I need to use the Posts Per Cat plugin (to allow the homepage to show 2 columns) and for each column, I want to add an image above them, but the only thing I could think of was a Category Image.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Treebeard

    (@malawimama)

    That’s almost what I was looking for, maybe it can be modified. What I need to do is have the 2 columns on the homepage, 1 for each category, and at the top show the category image. Not sure how to modify it (I’m not very good at modifying PHP yet) because I’m using Posts Per Cat to create the columns… unless I could create the columns manually, which probably could be done..

    Maybe if I post another question in the forums on how to just show posts for a specific category using an if/then statement, then I could create the columns manually and add this plugin in there.

    Thanks for your help! ??

    Thread Starter Treebeard

    (@malawimama)

    I got it! And using the plugin you mentioned. For anyone that wants to know, this is what my home.php code looks like:

    <?php
    /*
    Template Name: Homepage
    */
    ?>
    <?php get_header(); ?>
    <?php include (TEMPLATEPATH . "/head.php"); ?>
    <?php include (TEMPLATEPATH . "/subhdr_home.php"); ?>
    
    <div id="lftcol">
    <div class="maincontent">
    <div style="width: 250px; float: left;">
    <?php ciii_category_images( 'category_ids=3' ); ?>
    <?php $blog_query = 'showposts=5&cat=3&paged='.$paged; $posts = query_posts($blog_query);
    	while (have_posts()) : the_post(); ?>
    <?php the_excerpt(); ?>
    <?php endwhile;?>
    </div>
    
    <div style="width: 250px; float: right;">
    <?php ciii_category_images( 'category_ids=4' ); ?>
    <?php $blog_query = 'showposts=5&cat=4&paged='.$paged; $posts = query_posts($blog_query);
    	while (have_posts()) : the_post(); ?>
    <?php the_excerpt(); ?>
    <?php endwhile;?>
    </div>
    
    <?php ciii_category_images( 'category_ids=5' ); ?>
    <?php $blog_query = 'showposts=5&cat=5&paged='.$paged; $posts = query_posts($blog_query);
    	while (have_posts()) : the_post(); ?>
    <?php the_excerpt(); ?>
    <?php endwhile;?>
    <br class="clearfloat" />
    </div>
    <!-- end mainc -->
    <?php include (TEMPLATEPATH . "/sidebar_home.php"); ?>
    <?php include (TEMPLATEPATH . "/footer.php"); ?>

    Thanks again for your help, really appreciate it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Image Titles instead of Text’ is closed to new replies.