ben bir arkadaştan wordpress bir site aldım ama arkadaşa ulaşamıyorum her neyse sorunu söyleyeyim .. Aldığım arkadaş sitenin anasayfasını sabitlemiş ben son eklediğim mesajların anasayfada çıkmasını istiyorum temanın anasayfasını eski hale getirdim fakat hata veriyo ve şuan index.php de sadece şu kod var ...
sitenin hata veren index.php si de böyle
lütfen yardım edin ...
PHP:
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
sitenin hata veren index.php si de böyle
PHP:
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div class="middle">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p><small><?php the_time('d F Y') ?> <?php the_author() ?></small> Kategori: <?php the_category(', ') ?> | <?php comments_popup_link('Yorum yok »', '1 Yorum »', '% Yorum »'); ?> <?php if(function_exists('the_views')) { the_views(); } ?> <?php edit_post_link('Düzenle', '', ' | '); ?></p>
<div class="entry">
<?php the_content('Devamını oku »'); ?>
</div>
<!-- AddThis Bookmark Post Button BEGIN -->
<?php echo "<div class=\"addthis\"><a href=\"http://www.addthis.com/bookmark.php?pub=blogohblog&url=".get_permalink()."&title=".get_the_title($id)."\" title=\"Bookmark using any bookmark manager!\" target=\"_blank\"><img src=\"http://s9.addthis.com/button1-bm.gif\" width=\"125\" height=\"16\" border=\"0\" alt=\"AddThis Social Bookmark Button\" /></a></div>"; ?>
<!-- AddThis Bookmark Post Button END -->
</div>
<div class="br"><br /></div>
<?php endwhile; ?>
<div>
<div class="alignleft"><?php next_posts_link('« Önceki Sayfa') ?></div>
<div class="alignright"><?php previous_posts_link('Sonraki Sayfa »') ?></div>
</div>
<br />
<?php else : ?>
<h2 class="center">Bulunamadı</h2>
<p class="center">Üzgünüm, aradığınız şey bulunamadı. </p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
lütfen yardım edin ...