- Impact
- 3
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:
How it looks for me:
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;
}
---------- Post added at 01:02 PM ---------- Previous post was at 12:59 PM ----------
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>
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:
How it looks for me:
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;
}
---------- Post added at 01:02 PM ---------- Previous post was at 12:59 PM ----------
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>
Last edited:








