hyenali
Aktif Üye
- Mesajlar
- 104
http://www.mehmethazinedar.com web sitesindeki manşet haberin başlığı aşağı almak istiyorum yukarıda oldumu başlık insanların başına geliyor resimi engelliyor.
index.php den manşet haberle ilgili bu kodları buldum burası mı emin değilim ama burasıysa nereyi değiştirmeliyim
<div class="anasayfamanset">
<?php query_posts('paged='.$paged.'&showposts=10&cat='); if ( have_posts() ) while ( have_posts() ) : the_post();$m++; ?>
<div class="manset" id="manset<?php echo $m; ?>"<?php if($m!==1){ echo ' style="display:none;"'; } ?>>
<h2 class="baslik"><a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a></h2>
<a href="<?php the_permalink(); ?>" >
<?php
if (get_post_meta($post->ID, "resim", true) != '') {
$resim = get_post_meta($post->ID, "resim", true);
echo "<img src='";
echo $resim;
echo "' alt=\"<?php the_title(); ?>\" width=\"590\" height=\"320\" />";
}
elseif (has_post_thumbnail()) {
the_post_thumbnail('manset', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'' )); ?>
<?php } else { ?>
<img src="<?php bloginfo(template_url); ?>/resim/resimyok_buyuk.png" alt="<?php the_title(); ?>" width="590px" height="320px"></img>
<?php } ?>
</a>
</div>
<?php endwhile; ?>
<ul class="sayfala">
<?php $t=0;query_posts('paged='.$paged.'&showposts=10&cat='); while ( have_posts() ) : the_post(); $t++; ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" onmouseover="manset(<?php echo $t; ?>)">
<?php
if (get_post_meta($post->ID, "resim", true) != '') {
$resim = get_post_meta($post->ID, "resim", true);
echo "<img src='";
echo $resim;
echo "' alt=\"<?php the_title(); ?>\" width=\"590\" height=\"320\" />";
}
elseif (has_post_thumbnail()) {
the_post_thumbnail('manset', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'' )); ?>
<?php } else { ?>
<img src="<?php bloginfo(template_url); ?>/resim/resimyok.png" alt="<?php the_title(); ?>" width="590px" height="320px"></img>
<?php } ?>
</a>
</li>
<?php endwhile;wp_reset_query(); ?>
</ul><div class="t"></div>
<div class="t"></div>
</div> <!-- /manset/ -->
<div class="t"></div>
index.php den manşet haberle ilgili bu kodları buldum burası mı emin değilim ama burasıysa nereyi değiştirmeliyim
<div class="anasayfamanset">
<?php query_posts('paged='.$paged.'&showposts=10&cat='); if ( have_posts() ) while ( have_posts() ) : the_post();$m++; ?>
<div class="manset" id="manset<?php echo $m; ?>"<?php if($m!==1){ echo ' style="display:none;"'; } ?>>
<h2 class="baslik"><a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a></h2>
<a href="<?php the_permalink(); ?>" >
<?php
if (get_post_meta($post->ID, "resim", true) != '') {
$resim = get_post_meta($post->ID, "resim", true);
echo "<img src='";
echo $resim;
echo "' alt=\"<?php the_title(); ?>\" width=\"590\" height=\"320\" />";
}
elseif (has_post_thumbnail()) {
the_post_thumbnail('manset', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'' )); ?>
<?php } else { ?>
<img src="<?php bloginfo(template_url); ?>/resim/resimyok_buyuk.png" alt="<?php the_title(); ?>" width="590px" height="320px"></img>
<?php } ?>
</a>
</div>
<?php endwhile; ?>
<ul class="sayfala">
<?php $t=0;query_posts('paged='.$paged.'&showposts=10&cat='); while ( have_posts() ) : the_post(); $t++; ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" onmouseover="manset(<?php echo $t; ?>)">
<?php
if (get_post_meta($post->ID, "resim", true) != '') {
$resim = get_post_meta($post->ID, "resim", true);
echo "<img src='";
echo $resim;
echo "' alt=\"<?php the_title(); ?>\" width=\"590\" height=\"320\" />";
}
elseif (has_post_thumbnail()) {
the_post_thumbnail('manset', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'' )); ?>
<?php } else { ?>
<img src="<?php bloginfo(template_url); ?>/resim/resimyok.png" alt="<?php the_title(); ?>" width="590px" height="320px"></img>
<?php } ?>
</a>
</li>
<?php endwhile;wp_reset_query(); ?>
</ul><div class="t"></div>
<div class="t"></div>
</div> <!-- /manset/ -->
<div class="t"></div>