Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Custom Post Templates Revisited


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jan 30, 2010, 03:06 PM
waded1
 
5 posts · Nov 2009
Washington, USA
Custom Post Templates Revisited

I have read through may threads on how to create Custom Post Templates while using the Atahualpa Theme. I am about 95% there. Here is a little background:

I am using a copy of index.php, renamed it to post-template.php. I added at the begining of the file.
Code:
<?php  /* creates a Post Template */
/*
Template Name Posts: Post-Template
*/
?>

I made all of the changes I wanted. I added them below:
Code:
<?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']); ?>
I am using the Custom Post Template Plugin so I can choose the custom post template within the post.

All of this works. The issue I am running into is when I use this custom post template, the information is added below the Information bar (bar that contains the Date, Category, Edit Post). I have tried moving my content to different areas within my post-template.php file. With no luck.

If it helps, here is a copy of my post-template.php

Code:
<?php  /* creates a Post Template */
/*
Template Name Posts: Custom-Post
*/
?>



<?php 	/* get all options: */

include (TEMPLATEPATH . '/functions/bfa_get_options.php');

get_header(); ?>



<?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 echo c2c_get_post_custom(559,"post-top"); ?>

<table align="left" style="width: 800px">
<tbody>
<tr style="height: 25px;">
<td style="text-align: center; height: 300px;" colspan="6" align="center" valign="top"><?php echo do_shortcode('[starratingmulti id=4 tpl=12]'); ?>

<strong>Write your own review of <?php echo c2c_get_custom(name); ?> at the bottom of this page.</strong></td>
<td style="text-align: right;" colspan="3" align="right"><?php echo c2c_get_post_custom(559,"ad-square"); ?></td>
</tr>
</tbody>
</table>

<?php echo c2c_get_post_custom(559,"post-middle"); ?>

<h1><?php echo c2c_get_custom(name); ?> Details</h1>
<?php echo c2c_get_custom(details); ?>

<h3>Recreation near <?php echo c2c_get_custom(name); ?></h3>
<?php echo c2c_get_custom(recreation); ?>

<h3>Directions to <?php echo c2c_get_custom(name); ?></h3>
<?php echo c2c_get_custom(directions); ?>

<h3>Photo Gallery</h3>
<?php echo do_shortcode('[showtime]'); ?>

<h4>Additional Information</h4>
<?php echo c2c_get_post_custom(559,"ad-footer"); ?>
<?php echo c2c_get_post_custom(559,"post-bottom"); ?>

<h4>Write your own review of <?php echo c2c_get_custom(name); ?> below:</h4>


						

	<?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(); ?>
Thank you in advance for any assistance.
 

Bookmarks

Tags
atahualpa, custom post template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disabling Link in Titles .. Revisited redacter Post-Kicker, -Byline & -Footer 7 Nov 8, 2010 06:10 PM
[SOLVED] post - custom field isa Forum How-To 0 Sep 17, 2009 02:44 PM
Category Page Revisited gungo Plugins & Atahualpa 12 Jul 28, 2009 12:36 PM
Custom post fields wwday3 Post-Kicker, -Byline & -Footer 8 Jul 28, 2009 11:39 AM


All times are GMT -6. The time now is 05:15 AM.


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