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 » Plugins & Atahualpa »

Need Help with Main Index Template Code


  #1  
Old Mar 4, 2011, 03:52 PM
jdv
 
1 posts · Mar 2011
I tried deleting a plug in "smooth slider" on my main index template and now my page will not load. Please help!

I got this error message:

syntax error, unexpected $end in /home7/danamand/public_html/ca/wp-content/themes/atahualpa/index.php on line 73

Here is the code that got messed up: (I tried deleting and then reinserting the smooth slider code and must have placed it back in the wrong place).


<?php # error_reporting(-1);
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header();
extract($bfa_ata);


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

if (have_posts()) : $bfa_ata['postcount'] = 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
display:none !important;
}


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

<?php include 'bfa://content_above_loop'; ?>

<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

<?php include 'bfa://content_inside_loop'; ?>
<div class="program_metadata">


<h4><?php $post_type = $post->post_type; ?></h4>

<?php if($post_type == "program") : ?>

<?php $meta = get_post_custom($post_id); ?>


<?php
if ( $meta['address'][0] ) {$addr = $meta['address'][0] ;}
if ( $meta['parentorganization'][0] ) { $parent = $meta['parentorganization'][0];}

if ( $meta['type'][0] ) {$type = $meta['type'][0];}

if ( $meta['phone'][0] ) {$phone = $meta['phone'][0];}

if ( $meta['organizertitle'][0] && $meta['name'][0] ) {$organizer = $meta['organizertitle'][0] . ': ' . $meta['name'][0] ;}

if ( $meta['studentcount'][0] ) {$student = $meta['studentcount'][0] ;}
if ( $meta['url'][0] ) {$url = $meta['url'][0];}

if ( $meta['faddress'][0] ) {$faddress = $meta['faddress'][0] ;}

?>

<p><a href="<?php echo $url; ?>"><?php echo $parent; ?></a></p>
<p>Type: <?php echo $type; ?></p>
<p>Contact: <?php echo $organizer; ?></p>
<p>Phone: <?php echo $phone; ?></p>
<p><?php echo $faddress; ?></p>
<p>Number of students: <?php echo $student; ?></p>
</div>
<?php endif; /* END of: if this is a program */ ?>
<?php endwhile; ?>


<?php //include 'bfa://content_below_loop'; ?>
<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php include 'bfa://content_not_found'; ?>

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

<?php # center_content_bottom does not exist
# if ( $bfa_ata['center_content_bottom'] != '' ) include 'bfa://center_content_bottom'; ?>

<?php get_footer(); ?>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How To Change H1 Tags On Pages - Can't Find Page Template In Code pokepsw Center area post/pages 7 Feb 7, 2011 11:29 AM
remove Read More: TITLE from the main index dpace32 Excerpts, Read more, Pagination 1 Dec 9, 2010 10:23 PM
[SOLVED] Which theme template do I add SiteMeter code to? dlpetry Plugins & Atahualpa 4 Feb 9, 2010 04:03 PM
Weird Error With Code in Loop as Opposed to index.php adum Post-Kicker, -Byline & -Footer 1 Oct 10, 2009 04:48 AM
Front Page - Main content code murdoco Header configuration & styling 1 Jun 30, 2009 05:56 AM


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


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