@ ottens
here you have the code need to achieve what you want.....
1- open template.php, look for this lines of code >>
function arras_get_posts($page_type, $query = null) {
global $post, $wp_query;
if (!$query) $query = $wp_query;
if ( $query->have_posts() ) : ?>
<?php if (arras_get_option($page_type . '_news_display') == 'traditional') : ?>
<div class="traditional hfeed">
<?php while ($query->have_posts()) : $query->the_post() ?>
<div <?php arras_single_post_class() ?>>
<?php arras_postheader() ?>
<div class="entry-content"><?php the_content( __('<p>Read the rest of this entry »</p>', 'arras') ); ?></div>
<?php arras_postfooter() ?>
</div>
<?php endwhile; ?>
</div><!-- .traditional -->
<?php elseif (arras_get_option($page_type . '_news_display') == 'line') : ?>
<ul class="hfeed posts-line clearfix">
<?php while ($query->have_posts()) : $query->the_post() ?>
<li <?php arras_post_class() ?>>
<?php if(!is_archive()) : ?>
<span class="entry-cat">
<?php $cats = get_the_category();
if (arras_get_option('news_cat')) echo $cats[1]->cat_name;
else echo $cats[0]->cat_name; ?>
</span>
<?php endif ?>
<h3 class="entry-title"><a rel="bookmark" href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'arras'), get_the_title() ) ?>"><?php the_title() ?></a></h3>
<span class="entry-comments"><?php comments_number() ?></span>
</li>
<?php endwhile; ?>
</ul>
<?php else : ?>
<ul class="hfeed posts-<?php echo arras_get_option($page_type . '_news_display') ?> clearfix">
<?php while ($query->have_posts()) : $query->the_post() ?>
<li <?php arras_post_class() ?>>
<?php arras_newsheader($page_type) ?>
<div class="entry-summary"><?php echo arras_strip_content(get_the_excerpt(), 20); ?></div>
<?php arras_newsfooter($page_type) ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php endif; ?>
<?php
}
2- replace it with this one>>
function arras_get_posts($page_type, $query = null) {
global $post, $wp_query;
if (!$query) $query = $wp_query;
if ( $query->have_posts() ) : ?>
<?php if (arras_get_option($page_type . '_news_display') == 'traditional') : ?>
<div class="traditional hfeed">
<?php while ($query->have_posts()) : $query->the_post() ?>
<div <?php arras_single_post_class() ?>>
<?php arras_postheader() ?>
<div class="entry-content"><?php the_content( __('<p>Read the rest of this entry »</p>', 'arras') ); ?></div>
<?php arras_postfooter() ?>
</div>
<?php endwhile; ?>
</div><!-- .traditional -->
<?php elseif (arras_get_option($page_type . '_news_display') == 'line') : ?>
<ul class="hfeed posts-line clearfix">
<?php while ($query->have_posts()) : $query->the_post() ?>
<li <?php arras_post_class() ?>>
<?php if(!is_archive()) : ?>
<span class="entry-cat">
<?php $cats = get_the_category();
if (arras_get_option('news_cat')) echo $cats[1]->cat_name;
else echo $cats[0]->cat_name; ?>
</span>
<?php endif ?>
<h3 class="entry-title"><a rel="bookmark" href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'arras'), get_the_title() ) ?>"><?php the_title() ?></a></h3>
<span class="entry-comments"><?php comments_number() ?></span>
</li>
<?php endwhile; ?>
</ul>
<?php else : ?>
<ul class="hfeed posts-<?php echo arras_get_option($page_type . '_news_display') ?> clearfix">
<?php while ($query->have_posts()) : $query->the_post() ?>
<li <?php arras_post_class() ?>>
<?php arras_newsheader($page_type) ?>
<div class="entry-summary"><?php echo arras_strip_content(get_the_excerpt(), 20); ?></div>
<!-- here i add this lines to show category name and the puplish date-->
<span class="holder"><a href="<?php echo get_permalink(); ?>">
<span class="category"><span class="cat">Posted in:</span>
<?php if ( arras_get_option('post_cats') ) {
$post_cats = array();
$cats = get_the_category();
foreach ($cats as $c) $post_cats[] = $c->cat_name;
echo sprintf( __('%s', 'arras'), implode(' , ', $post_cats) );} ?></span></a>
<abbr class="date" title="<?php echo get_the_time('c'); ?>">Date: <?php echo get_the_time( get_option(' date_format') ); ?></abbr></span>
<!-- end of my added code-->
<?php arras_newsfooter($page_type) ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php endif; ?>
<?php
}
3- open your filter.php file and look for this lines>>
/**
* Called to display post heading for news in index and archive pages
* @since 1.2.2
*/
function arras_newsheader($page_type) {
global $post;
$postheader = '';
if ( arras_get_option('layout') == '3c-r-fixed' || arras_get_option('layout') == '3c-fixed' ) {
$w = ARRAS_3COL_MINI_WIDTH;
$h = ARRAS_3COL_MINI_HEIGHT;
} else {
$w = ARRAS_2COL_MINI_WIDTH;
$h = ARRAS_2COL_MINI_HEIGHT;
}
$postheader .= '<div class="entry-thumbnails"><a class="entry-thumbnails-link" href="' . get_permalink() . '">';
if ( ($thumbnail = arras_get_thumbnail($w, $h)) ) {
$postheader .= '<img src="' . arras_get_thumbnail($w,$h) . '" alt="' . get_the_title() . '" title="' . get_the_title() . '" />';
} else {
$postheader .= get_the_title();
}
$postheader .= '<span class="entry-meta"><a href="' . get_permalink() . '"><span class="entry-comments">' . get_comments_number() . '</span></a>';
$postheader .= '<abbr class="published" title="' . get_the_time('c') . '">' . get_the_time( get_option('date_format') ) . '</abbr></span></div>';
$postheader .= '<h3 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h3>';
echo apply_filters('arras_newsheader', $postheader);
}
5-replace it with lines>>
/**
* Called to display post heading for news in index and archive pages
* @since 1.2.2
*/
function arras_newsheader($page_type) {
global $post;
$postheader = '';
if ( arras_get_option('layout') == '3c-r-fixed' || arras_get_option('layout') == '3c-fixed' ) {
$w = ARRAS_3COL_MINI_WIDTH;
$h = ARRAS_3COL_MINI_HEIGHT;
} else {
$w = ARRAS_2COL_MINI_WIDTH;
$h = ARRAS_2COL_MINI_HEIGHT;
}
$postheader .= '<div class="entry-thumbnails"><a class="entry-thumbnails-link" href="' . get_permalink() . '">';
if ( ($thumbnail = arras_get_thumbnail($w, $h)) ) {
$postheader .= '<img src="' . arras_get_thumbnail($w,$h) . '" alt="' . get_the_title() . '" title="' . get_the_title() . '" />';
} else {
$postheader .= get_the_title();
}
// here i removed some lines that shows the post date and comments on the thumbnail
$postheader .= '</a>';
$postheader .= '</div>';
$postheader .= '<h3 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h3>';
echo apply_filters('arras_newsheader', $postheader);
}
6- add this to your style sheet(user.css)>>>
.holder {
background-color:#000000;
-moz-border-radius:8px 8px 8px 8px;
color:#030303;
display:block;
float:right;
height:auto;
min-height:30px;
margin:6px 0 0 0;
opacity:0.7;
vertical-align:baseline;
width:120px;
z-index:9999;
text-align: center;
font-size: 11px;
border:2px solid #0052A3;
padding:3px;
}
.holder:hover {
opacity:1;
width:130px;
}
.holder .category {
text-align: left;
margin:1px;
padding:0px;
display:inline-block;
}
.holder .cat {
color:#00C100;
text-align: left;
margin:1px;
padding:0px;
font-size: 11px;
display:inline-block;
}
.holder .date {
text-align: center;
color:#cccccc;
padding:0px;
margin-top:1px;
vertical-align:baseline;
display:inline-block;
}
we got more than what we are giving back....