Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Calling the loop on multiple pages


  #1  
Old Oct 28, 2009, 10:25 AM
FCBrian
 
2 posts · Oct 2009
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(); ?>

________________________

Bookmarks

Tags
call, loop, page, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Landing Pages At One Time? SCLove Atahualpa 3 Wordpress theme 12 Oct 20, 2009 07:26 AM
Loop Code Displaying Instead of Pages TheInfamousGdub Atahualpa 3 Wordpress theme 6 Aug 27, 2009 09:52 PM
Only Pages in the loop sumochill Excerpts, Read more, Pagination 1 Aug 13, 2009 10:52 AM
multiple post pages michael close Forum How-To 3 Jun 23, 2009 08:03 PM
multiple pages... (homepage) designer666 Atahualpa 3 Wordpress theme 1 May 12, 2009 10:43 AM


All times are GMT -6. The time now is 12:49 AM.


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