Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

21652 Posts in 2945 Topics- by 1398 Members - Latest Member: opacakivan1977
Euro Free Code ForumiOpen Source Blogging EnginesWordpress Blogging Platform (Moderator: nedim)Standardan izgled umesto featured a.k.a. HELP!
Pages: [1]   Go Down
Print
Author Topic: Standardan izgled umesto featured a.k.a. HELP!  (Read 1007 times)
Krsto
Jr. Member
**
Offline Offline

Posts: 93



View Profile
« on: 15.01.2009; 21:34:10 PM »

Dakle, na jednom svom sajtu imam problem na naslovnoj strani. Zapravo nije problem, već sam shvatio da stvari koliko su dobre toliko i nisu...

Stvar je u tome što Wordpress tema koju koristim podrazumeva da se na naslovnoj strani nalaze članci iz dve odabrane kategorije. Prikazan je thumbnail i kratak uvod u članak, a ja bih da se tu nalaze članci jedan ispod drugog, dakle kao na klasičnim blogovima...

Ispod je kod, a bio bih zahvalan ako bi neko editovao to da izgleda kako sam opisao...
Evo i slika da se bolje objasni: http://i42.tinypic.com/1zcdbm.jpg

main index template (index.php stranica)
Code:
<?php get_header(); ?>

<!-- featured section html -->
<?php include (TEMPLATEPATH "/featured.php"); ?>
<!-- end -->

<!-- begin main column -->
<div id="bigcolumn">

<div id="top_posts">
<?php
for(
$l 1$l <= $opt['lcatn']; $l++) {
?>

<?php query_posts('showposts='.$opt['postno'].'&cat='.$opt['lcat'.$l]); ?>
<?php $feed $opt['lcat'.$l]; ?>
<h2><?php single_cat_title(); ?> <a href="<?php print get_category_feed_link($feed''); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" alt="" title="RSS" /></a></h2>
<a href="<?php echo get_category_link($opt['lcat'.$l]); ?>" class="more"><?=$l_opt['word81']?></a><div class="clear"></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="postbox">
<div class="top_thumb"><?php echo get_the_image(array('Thumbnail','My Thumbnail'),'thumbnail'); ?></div>
<div class="top_entry">
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="time"><?php the_time('l, F j, Y G:i'); ?></div>
<div class="excerpt"><p><?php the_excerpt_reloaded($opt['excerpt'], '<a>'FALSEFALSE2); ?></p></div>
<ul class="postbit">
<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?=$l_opt['word4']?></a></li>
<li><a href="<?php the_permalink() ?>#commenting" title="<?=$l_opt['word5']?>"><?php comments_number($l_opt['word9'],$l_opt['word10'],'% '.$l_opt['word11']); ?></a></li>
</ul>
</div><div class="clear"></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="postbox">
<p><?=$l_opt['word46']?></p>
</div>
<?php endif; ?>
<?php
}
?>


</div>

<div id="recent_posts">

<?php
for(
$r 1$r <= $opt['rcatn']; $r++) {
?>

<?php query_posts('showposts='.$opt['postno'].'&cat='.$opt['rcat'.$r]); ?>
<?php $feed $opt['rcat'.$r]; ?>
<h2><?php single_cat_title(); ?> <a href="<?php print get_category_feed_link($feed''); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" alt="" title="RSS" /></a></h2>
<a href="<?php echo get_category_link($opt['rcat'.$r]); ?>" class="more"><?=$l_opt['word81']?></a><div class="clear"></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="postbox">
<div class="recent_thumb"><?php echo get_the_image(array('Thumbnail','My Thumbnail'),'thumbnail'); ?></div>
<div class="recent_entry">
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="time"><?php the_time('l, F j, Y G:i'); ?></div>
<div class="excerpt"><p><?php the_excerpt_reloaded($opt['excerpt'], '<a>'FALSEFALSE2); ?></p></div>
<ul class="postbit">
<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?=$l_opt['word4']?></a></li>
<li><a href="<?php the_permalink() ?>#commenting" title="<?=$l_opt['word5']?>"><?php comments_number($l_opt['word9'],$l_opt['word10'],'% '.$l_opt['word11']); ?></a></li>
</ul>
</div><div class="clear"></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="postbox">
<p><?=$l_opt['word46']?></p>
</div>
<?php endif; ?>
<?php
}
?>


</div>
<center><script type="text/javascript"><!--
google_ad_client = "pub-6907349641038686";
/* 200x200, created 06/01/09 */
google_ad_slot = "5627633640";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
<?php get_sidebar(); ?>

<div class="clear"></div>
</div>
<!-- end main column -->

<?php get_footer(); ?>

Hvala puno!
Logged
Pages: [1]   Go Up
Print
Jump to: