Forums

[resolved] Add full loop to a page in Atahualpa (5 posts)

  1. BrianHolcombe
    Member
    Posted 2 months ago #

    Hi all,

    I am trying in vain thus far to add the full loop to a second page in my site, which uses Atahualpa 3.4.1. My impression is that adding new page templates in Atahualpa leads to a loss of part of the theme's functionality on the pages that pull that template.

    Any help is greatly appreciated.

    Brian

  2. MichaelH
    moderator
    Posted 2 months ago #

    My impression is that adding new page templates in Atahualpa leads to a loss of part of the theme's functionality on the pages that pull that template.

    Can't imagine that...have you tried it?

  3. BrianHolcombe
    Member
    Posted 2 months ago #

    I haven't yet. I thought I'd post here for affirmation before going the template route.

    Brian

  4. MichaelH
    moderator
    Posted 2 months ago #

    Installed that theme, copy link.php from the WordPress Default theme, to the wp-content/themes/atahualpa folder and link that template to a page and the page semmed to render correctly.

  5. BrianHolcombe
    Member
    Posted 4 weeks ago #

    OK, so back to this issue. I am able to activate a new template, but cannot for the life of me pull the loop into a page other than the post page within Atahualpa.

    Below is the code for the template in questions:

    {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
    {\fonttbl\f0\fmodern\fcharset0 Courier;}
    {\colortbl;\red255\green255\blue255;}
    \margl1440\margr1440\vieww12460\viewh11980\viewkind0
    \deftab720
    \pard\pardeftab720\ql\qnatural
    
    \f0\fs24 \cf0 <?php\
    /*\
    Template Name: blogcentertemplate\
    */\
    ?>\
    
    <?php 	/* get all options: */
    include (TEMPLATEPATH . '/functions/bfa_get_options.php');
    get_header(); ?>
    
    <?php bfa_center_content($bfa_ata['center_content_bottom']); ?>
    
    <!...Begin Loop...!>
    <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <?php the_title('<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>
    
    <p class="byline">
    	<span class="author vcard"><?php the_author_posts_link(); ?></span> <span class="sep">|</span>
    	<abbr class="published" title="<?php the_time(__('l, F jS, Y, g:i a', 'example')); ?>"><?php the_time(__('F j, Y', 'example')); ?></abbr>
    	<?php edit_post_link(__('Edit', 'example'), ' <span class="sep">|</span> <span class="edit">', '</span> '); ?>
    </p>
    
    <div class="entry-content">
    	<?php the_content(__('Continue reading', 'example')); ?>
    	<?php wp_link_pages('before=<p class="pages">' . __('Pages:','example') . '&after=</p>'); ?>
    </div>
    
    <p class="entry-meta">
    	<span class="categories"><?php _e('Posted in', 'example'); ?> <?php the_category(', '); ?></span>
    	<?php the_tags('<span class="tags"> <span class="sep">|</span> ' . __('Tagged', 'example') . ' ', ', ', '</span>'); ?>
    	<span class="sep">|</span> <?php comments_popup_link(__('Leave a response', 'example'), __('1 Response', 'example'), __('% Responses', 'example'), 'comments-link', __('Comments closed', 'example')); ?>
    </p>
    
    </div>
    
    	<?php endwhile; ?>
    
    <?php else : ?>
    
    	<p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
    
    <?php endif; ?>
    
    <?php get_footer(); ?>

    If anyone could help, I would be incredibly grateful.

    Brian

Reply

You must log in to post.

About this Topic