• Resolved trestianub

    (@trestianub)


    hi there!

    i’ve been trying for a couple of days now to query posts from 3 categories on my website and display them with different color for each category…

    logitune.fm is the website and I’m trying to build a scrolling div with all the posts from the HOUSE BASS and LOUNGE categories… and i need to display them with their specific color

    something like:

    <div class=”<?php echo $category-slug(); ?>” >
    <?php query_posts(‘cat=4,5,6’); ?>
    <?php while (have_posts()) : the_post(); ?>
    ” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?>
    <?php if(get_post_meta($post->ID, “image_value”, true)) : ?>
    <?php endif; ?>
    <?php the_tags(); ?>

    <?php endwhile; ?>
    </div>

    any idea if that’s possible? or any other idea on how to do that?

    thanks
    Bogdan

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘use category slug as css class-name’ is closed to new replies.