Just need a little Wordpress theme tweak help!

Discussion in 'WordPress' started by Apposl, Aug 16, 2010.

  1. #1
    Hey all.

    I am using the Arthemia free theme at UAVpilot org.


    Next to the large Headline image and article, on the very right, are 3 Featured Posts with thumbnails. There SHOULD be a small excerpt included with these posts, but I cannot get it to display. It's nothing as easy as posting something in the Excerpt box of the Post creation page...

    An example of how the theme should look:
    [​IMG]

    How it looks for me:
    [​IMG]

    Any help would be so appreciated.

    This seems to be the code related to that part of theme in the index.php file if it's relevant for a fix.

    <div id="featured">

    <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />

    <?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>


    <?php while (have_posts()) : the_post(); ?>
    <div class="clearfloat">
    <?php $values = get_post_custom_values("Image");
    if (isset($values[0])) { ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="100px" height="65px" /></a>
    <?php } ?>
    <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
    <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>

    </div>
    </div>

    <?php endwhile; ?>

    </div>

    And this is from the stylesheet file:


    #featured {
    width:300px;
    background:#fff;
    float:right;
    padding:10px 10px 9px 10px;
    }

    #featured .clearfloat {
    margin-top:7px;
    margin-bottom:8px;
    }

    #featured .info {
    margin-top:5px;
    padding-top:5px;
    float:right;
    width:180px;
    }

    #featured .title {
    font-weight:bold;
    }


    I notice that in my theme, for the Featured section, it displays the views/date/comments, whereas in the theme pictured, it just shows the excerpt.

    So maybe if I delete something in those sections I posted related to that... Like this part?

    <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
    <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>
     
    Apposl, Aug 16, 2010 IP
  2. Salvadore617

    Salvadore617 Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This needs to be somewhere near php the_title:

    It won't show an excerpt unless you place the excerpt there. Put that after php the title. You may also need some css work to place it correctly. I feel arthemia has it by default, but I don't see any arthemia functions here.
     
    Salvadore617, Aug 16, 2010 IP
  3. Apposl

    Apposl Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #3
    Okay... So place that code where you suggest, and see what happens. I'll give it a try, thanks so much for your time!
     
    Apposl, Aug 16, 2010 IP
  4. Apposl

    Apposl Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #4
    OK! I changed some things, and the excerpts are showing up. Thank you! Any idea on how to make them look a little different from the Post Title? They're the same 'link color' now.

    This is what my code looks like now...

    <?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>


    <?php while (have_posts()) : the_post(); ?>
    <div class="clearfloat">
    <?php $values = get_post_custom_values("Image");
    if (isset($values[0])) { ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="100px" height="65px" /></a>
    <?php } ?>
    <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?><?php the_excerpt(); ?>

    </div>
    </div>

    <?php endwhile; ?>

    </div>
     
    Apposl, Aug 16, 2010 IP
  5. Apposl

    Apposl Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #5
    I mean make the excerpt text black. Sorry to be vague. Chasing a 3yo around. Either way, thanks a ton for the help, I've used this theme for two months and had no idea how to change it.
     
    Apposl, Aug 16, 2010 IP