NOTE: I replaced the loop in page.php with the loop from index.php. Now it shows all of the comments, etc. and all of the formatting on the posts just like in the homepage. The only problem is when I try to click on one of the post titles, I get a blank page.
https://www.atriskstoriesofhope.com/wordpress/what-is-the-number-one-question-in-education
If I log into admin>manager>edit post>view post, I still get a blank page.
This is the two bits of code. The first one is from index.php and the second one is from page.php I’m kind of at a loss right here. Is it possible that I can take all of the code of the loop from index.php and replace the loop in page.php. I’m sure I will have to add some more code to only display the posts from my podcast category.
Thanks
<?php
if (is_page(23) ) {
query_posts("cat=3");
}
?>
</small>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »
'); ?>
<?php wp_link_pages(array('before' => '<strong>Pages:</strong> ', 'after' => '
', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<!-- <?php if(function_exists("wjt_diggThisPost" )) wjt_diggThisPost();?>-->
<img src="../images/feed.png" />Subscribe via RSS <img src="../images/email.png" />Subscribe via Email
<!-- ADDTHIS BUTTON BEGIN -->
<script type="text/javascript">
addthis_pub = 'antoniop';
addthis_logo = 'https://www.addthis.com/images/yourlogo.png';
addthis_logo_background = 'EFEFFF';
addthis_logo_color = '666699';
addthis_brand = 'www.atriskstoriesofhope.com';
addthis_options = 'favorites, email, digg, delicious, myspace, facebook, google, live, more';
</script>
<a href="https://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="https://s9.addthis.com/button1-share.gif" width="125" height="16" border="0" alt="" /></a>
<script type="text/javascript" src="https://s7.addthis.com/js/152/addthis_widget.js"></script>
<!-- ADDTHIS BUTTON END -->
<?php if(function_exists('wp_email')) { email_link(); } ?> <?php if(function_exists('wp_print')) { print_link(); } ?> <img src="../images/comments.png" /><?php the_tags('Tags: ', ', ', ''); ?><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?><?php edit_post_link('Edit', '', ' '); ?>
<hr size = 5/>
</div>
<?php endwhile; ?>