Blog posts not linking to single.php?
-
I’ve edited my index.php to include 3 custom columns (‘left-col’, centre-col’, right-col’), but for some reason unknown to me the posts that appear here do not link their respective single pages.
I’ve built the theme with Eddie Machado’s Bones.
Any help or advice gratefully received.
The index.php page in question is:
http://www.inspirationalbreathing.com/breathing-inspiration/The index.php page code is:
———————————————————————-
<?php get_header(); ?><div id=”content”>
<div id=”inner-content” class=”wrap cf”>
<div id=”main-image” class=”breathing-audio”>
<div class=”d-all”>
<h2 class=”message f0 fade05″>
Breathing your wayto inspiration
</h2>
</div>
</div><div id=”main” class=”m-all t-2of3 d-5of7 cf” role=”main”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class( ‘cf’ ); ?> role=”article”>
<header class=”article-header”>
<h1 class=”h2 entry-title”>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></h1>
<p class=”byline vcard”>
<?php printf( __( ‘Posted’, ‘bonestheme’ ) . ‘ <time class=”updated” datetime=”%1$s” pubdate>%2$s</time> ‘ . __(‘by’, ‘bonestheme’ ) . ‘ <span class=”author”>%3$s</span>’, get_the_time(‘Y-m-j’), get_the_time(get_option(‘date_format’)), get_the_author_link( get_the_author_meta( ‘ID’ ) )); ?>
</p></header>
<div class=”left-col”>
<?php get_sidebar(sidebar3); ?>
</div>
<div class=”centre-col”>
<section class=”entry-content cf”>
<?php the_content(); ?>
</section><footer class=”article-footer cf”>
<p class=”footer-comment-count”>
<?php comments_number( __( ‘<span>No</span> Comments’, ‘bonestheme’ ), __( ‘<span>One</span> Comment’, ‘bonestheme’ ), _n( ‘<span>%</span> Comments’, ‘<span>%</span> Comments’, get_comments_number(), ‘bonestheme’ ) );?>
</p><?php printf( ‘<p class=”footer-category”>’ . __(‘filed under’, ‘bonestheme’ ) . ‘: %1$s</p>’ , get_the_category_list(‘, ‘) ); ?>
<?php the_tags( ‘<p class=”footer-tags tags”><span class=”tags-title”>’ . __( ‘Tags:’, ‘bonestheme’ ) . ‘</span> ‘, ‘, ‘, ‘</p>’ ); ?>
</div>
<div class=”right-col”>
<?php get_sidebar(sidebar2); ?>
</div></footer>
</article>
<?php endwhile; ?>
<?php bones_page_navi(); ?>
<?php else : ?>
<article id=”post-not-found” class=”hentry cf”>
<header class=”article-header”>
<h1 class=”search-found”><?php _e( ‘Sorry, your search item
has not been found’, ‘bonestheme’ ); ?></h1>
</header>
<section class=”entry-content”>
<p><?php _e( ‘Maybe try and double checking things?’, ‘bonestheme’ ); ?></p>
</section></article>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>
The topic ‘Blog posts not linking to single.php?’ is closed to new replies.