Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am “this guy” and it’s pretty easy to do –

    <?php $active_cat = get_the_category(); $active_cat = $active_cat[0]; ?>
    					<span class="<?php echo($active_cat->category_nicename); ?> meta cat"><a href="http://bleikamp.com/category/<?php echo($active_cat->category_nicename); ?>" title="View all posts in <?php echo($active_cat->category_nicename); ?>"><?php echo($active_cat->category_nicename); ?></a></span>

    So then your CSS file would look like this:

    span.category1 { background: #009; padding: 2px; }
    span.category2 { background: #090; padding: 2px; }
    ...

    Thread Starter benblei

    (@benblei)

    After CHMOD-777 to the two directories mentioned I have not been able to access /wp-admin/ and my index.php page is blank.

    Thread Starter benblei

    (@benblei)

    Well now I’m getting something about my database being out of date and giving me the option to upgrade…

    I’ve never had this problem with any previous WordPress installs and I was uploading images last night without a problem…

    This is Ben from ThePokerBlog.

    I put the theme together myself, I used a few other blogs as reference for a general layout, but I’m not passing off anyone elses’s work as my own.

    I am very bad with PHP – which is why references to WordPress are probably missing, I just threw the required tags in and hacked the code until it worked.

    I’m sure there are other themes available that look like this, but it was faster for me to do it myself than customize someone elses work. If you’d like the files, I can send them to you, but it’s a very crudely assembled theme.

    Thread Starter benblei

    (@benblei)

    I didn’t look hard enough. I apologize for posting a question this dumb 🙂

    Forum: Fixing WordPress
    In reply to: Feature Stories
    Thread Starter benblei

    (@benblei)

    Okay – I tried to do what the codex told me to and I’m having trouble. I’m not spectacular with PHP but I know enough that I should be able to make this work.

    Here is the code I’m trying to use to make a “feature post” – anyone know what the problem is? It’s basically coming up wtih a blank page…

    <div id="content">
    <?php $my_query = new WP_Query('category_name=featured&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID;?>

    <div class="feature-title"></div>
    <div class="feature-story">
    <h2>"><?php the_title(); ?></h2>
    <span class="meta">from <?php the_time('F jS, Y'); ?>\</span>
    <?php the_content(); ?>
    <span class="meta">Comments</span>
    </div><!-- end of feature -->

    <div id="advertise">
    <img src="http://www.thepokerblog.net/advertise-top.gif" class="top" />
    Sign up at UltimateBet.com and play against Phil Hellmuth
    <img src="http://www.thepokerblog.net/advertise-bottom.gif" class="bottom" />
    </div>

    <?php endwhile; ?>
    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

    <?php endwhile; endif; ?>

    </div><!-- end of content -->

    Forum: Fixing WordPress
    In reply to: Feature Stories
    Thread Starter benblei

    (@benblei)

    Thanks a lot 🙂 I had looked at codex and couldn’t find anything, but that link helps a lot. And the plugin looks great 🙂

    CSS & Web standards are going to revolutionize the web. If you don’t learn CSS, you’ll be lost.
    ESPN.com and ABCNews.com have already converted to standards compliant pages with CSS as their primary source of styling.

    Thread Starter benblei

    (@benblei)

    I copied any include that looked like it referred to posts.

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