Arkadaşlar demo gösteremiyorum localde kurdum çünkü sorunu şöyle anlatayım:
Temada sidebar1 ve sidebar2 dosyası var.Sidebar1'de "Featured Posts" adı alrında konu linkleri ve konunun kısa açıklamaları var.Anasayfada sidebar1'deki yazının kaç karakterden oluşacağını home.php'den ayarlayabiliyorum.Ancak sorun şu ki: konu içlerine girince sidebar1'deki konu içeriği çok uzun oluyor ve bu sayfayı metrelerce aşağı indiriyor.Benim istediğim anasayfadaki sidebarın şeklinin konu içlerine girince de aynı kalması.Bu sorunu hangi dosyadan çözebilirim?
Sidebar1.php <div id="s1top">
<div id="s1bottom">
<div id="sidebar1">
<?php include (TEMPLATEPATH . '/twitwdg.php'); ?>
<ul>
<li>
<h2>Featured Posts</h2>
<?php
$featcat = get_option('blue_featcat');
$my_query = new WP_Query('category_name= '. $featcat .'&showposts= 3');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>
<li>
<div class="feat">
<center><b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b></center>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;width:40px;margin:10px 5px 0 0;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;width:40px;margin:10px 5px 0 0;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<?php the_content_limit(80, "<b>d</b>"); ?> </div>
</li>
<?php endwhile; ?>
</li>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li>
<h2> Sponsors</h2>
<div id="ad200">
<?php $side_200 = get_option('blue_side_200'); echo stripslashes($side_200);?>
</div>
</li>
<li>
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php endif; ?>
</ul>
</div></div></div>Archive.php: <?php get_header();?>
<div id="pagetop"></div>
<div id="pbody">
<div id="content">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php while (have_posts()) : the_post(); ?>
<div class="ptop"></div>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="ptitle"><h2>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div>
<div class="entry">
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;width: 100px;margin:15px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:15px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<?php the_content_limit(80, "<b>dView Details</b>"); ?>
</div>
<p class="postmetadata"><span class="comments"><?php comments_popup_link('Add a Comment'); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
<?php } ?>
</div>
<?php else : ?>
<?php include(TEMPLATEPATH."/404.php");?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>