• bsolah

    (@bsolah)


    I’ve asked this numerous times before and no one has responded

    I’m looking for a plugin or hack to highlight 3 or 4 key posts at the top of my blog. This is similar to what techcrunch.com or engadget.com have.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Use CSS.

    TEMPLATE FILE

    <?php
    $c = 0;
    if (have_posts()) : while (have_posts()) : the_post();
    $c++;
    if( $c < 5 ) $style ='highlight';
    else $style = '';
    ?>
    <div <?php post_class($style);?> id="post-<?php the_ID();?>">

    CSS:

    .highlight {
    background:yellow;
    color:black;}

    Thread Starter bsolah

    (@bsolah)

    I’m not looking to highlight the colour of the posts.

    I’m looking for a plugin or hack similar to techcrunch.com that posts a few special posts at the top of the page.

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

The topic ‘Help! Top Stories plugin’ is closed to new replies.