最近有人为我定制了一个WP博客。这个人做的工作不是很有意愿,所以我决定自己做。我自定义了自己的博客页面,所有这些都可以正常工作,但当我点击这些帖子时,我会看到一个“找不到错误”页面。我浏览了一些人写的旧博客,我不知道那个人把我的帖子链接到了哪里。我唯一的线索是<?php the_content(); ?>
:
<?php wp_link_pages( array( \'before\' => \'<div class="page-link">\' . __( \'Pages:\', \'twentyten\' ), \'after\' => \'</div>\' ) ); ?>
当我定制自己的页面时,我遗漏了这段代码。现在,当我点击帖子时,我发现一个“找不到错误”,这是我的博客页面: <?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<br/>
<br/>
<section id="content">
<div class="main">
<div class="inner">
<h3 class="h3 bg-3">Web Design inspiration, all resources you could need !</h3>
</div>
</div>
<?php if (have_posts()) : ?>
<?php query_posts(\'posts_per_page=3\'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="main">
<div class="cycle">
<div id="slider3" class="pics">
<div class="box">
<article>
<figure class="box-img img-indent"><a class="lightbox-image box-image" data-gal="prettyPhoto" href="<?php echo catch_that_image() ?>"><img src="<?php echo catch_that_image() ?>" alt="" /></a></figure>
<div class="inner"><a class="link-1" href="<?php the_permalink() ?>" title="Go to <?php the_title(); ?>"><?php the_title(); ?></a><br>
<div class="txt-3"><strong>Posted on:</strong> <span><?php the_time(\'m/d/y\') ?></span></div>
<p class="p3"><?php the_content() ?>
</p>
</div>
<div class="clear"></div>
<?php endwhile; ?>
</article>
</div>
</div>
</div>
<br/>
<br/>
<div class="navigate2">
<div id="nav"></div>
<?php next_posts_link(\'<span id="next_slide2"> </span>\') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn\'t here.</p>
<?php endif; ?>
</section>
<?php get_footer(); ?>
提前感谢!(另外,我在本地主机上工作,所以我没有你可以访问的网页。)