Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Calling the loop on multiple pages (http://forum.bytesforall.com/showthread.php?t=4104)

FCBrian Oct 28, 2009 09:25 AM

Calling the loop on multiple pages
 
Hi all,

I'm developing a site with the Atahualpa 3 theme that will call the loop on multiple pages and in multiple configurations:
-index and one other page pull excerpts loop
-one page, which is the one I'm writing about, pulls the full post loop
-author pages pull loop content for the corresponding author

So, I've built a page and corresponding template for a page titled BlogCenter. The page should display the full loop. Prior to changing the loop to display excerpts only for index.php, I copied the code from index.php into the new blogcenter template.

When I load the page, however, the loop does not call any posts, of which there is one currently. The loop does, however, display on the homepage.

I've searched the forums for days, have tried multiple solutions and can't seem to figure this out.

The homepage url is http://themountainshop.com and the BlogCenter is at /blogcenter.

Below is the code from the blogcenter template. I may be missing something at the foundation of the loop and templates. I really don't know why this isn't working.

Thank you in advance for your help!

Brian
_____________________

<?php
/*
Template Name: blogcenter
*/
?>

<?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header(); ?>

<img src="http://themountainshop.com/wp-content/uploads/2009/10/blogcenter.header.png">

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] == 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>

<?php /* This outputs the next/previous post or page navigation.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_above_loop']); ?>

<?php /* The LOOP starts here. Do this for all posts: */
while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

<?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
$odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' : 'even-post' ); ?>

<?php /* This is the actual Wordpress LOOP.
The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_inside_loop']); ?>

<?php /* END of the LOOP */
endwhile; ?>

<?php /* This outputs the next/previous post or page navigation and the comment template.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_below_loop']); ?>

<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; /* END of: If there are no posts */ ?>

<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>

<?php get_footer(); ?>

________________________


All times are GMT -6. The time now is 11:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.