Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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



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 11:56 PM.


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