我已经创建了一个很好的主页,其中的帖子被组织成两列。只是不知何故,在创建这篇文章时,我一定删除了告诉帖子链接到相应帖子的实际代码。所以现在,所有的帖子都显示在主页上,但是没有办法找到帖子-帖子预览与实际帖子没有链接。
我首先环顾了一些人,认为这可能是一个常见的问题,但我还没有找到答案。如果有人能帮忙,我将不胜感激!
网站位于internalcompass.us/castle. 这是一个关于212个孩子的主题。
这是我在内容中的代码。php
<?php
/**
* The default template for displaying content. Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<div class="featured-post">
<?php _e( \'Featured post\', \'twentytwelve\' ); ?>
</div>
<?php endif; ?>
<header class="entry-header">
<?php the_post_thumbnail(); ?>
<?php if ( is_single() ) : ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title">
</a> <h1 class="entry-title"><?php the_title(); ?><br><small class="time"><?php the_date(\'F j, Y\'); ?></small></h1>
</h1>
<?php endif; // is_single() ?>
</header><!-- .entry-header -->
<?php edit_post_link( __( \'Edit\', \'twentytwelve\' ), \'<span class="edit-link">\', \'</span>\' ); ?>
<?php if ( is_singular() && get_the_author_meta( \'description\' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( \'user_email\' ), apply_filters( \'twentytwelve_author_bio_avatar_size\', 68 ) ); ?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2><?php printf( __( \'About %s\', \'twentytwelve\' ), get_the_author() ); ?></h2>
<p><?php the_author_meta( \'description\' ); ?></p>
<div class="author-link">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( \'ID\' ) ) ); ?>" rel="author">
<?php printf( __( \'View all posts by %s <span class="meta-nav">→</span>\', \'twentytwelve\' ), get_the_author() ); ?>
</a>
</div><!-- .author-link -->
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>
</article><!-- #post -->