Support

Account

Home Forums General Issues error message field type Reply To: error message field type

  • Hi again- thanks for your patience. I am not whether I saved or updated but this is what I found-
    archive-reports.php

    <?php
    /**
     * The template for displaying Archive pages.
     *
     * Used to display archive-type pages if nothing more specific matches a query.
     * For example, puts together date-based pages if no date.php file exists.
     *
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     */
    
    get_header(); ?>
    
    <div id="main_container">
    
    <!-- IE7 float fix --><!--[if lt IE 7]><span class="iefix">.</span><![endif]-->
    
    	<div class="main">
    	
    		<div class="entries_full">
    		
    			<div class="entry_full">
    			
    				<div class="box_twothirds mt30 pr60">
    
    					<?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
    
    					<?php 
    
    					$country = get_the_term_list( $post->ID, 'report_country','', ', ', '' );
    					$year = get_the_term_list( $post->ID, 'report_year','', ', ', '' );
    					$topics = get_the_term_list( $post->ID, 'report_topic','', ', ', '' );
    
    					?>
    		 
    		 			<?php $count++; if($count > 3) { $count = 1; } ?>
    	 
    					<h4 class="<?php if($count > 1) echo "mt25 "; ?>mb12"><?php the_title(); ?></h4>
    					<?php the_content(); ?>
    					<ul class="files">
    					<?php
    						$rows = get_field('attachments');
    
    						if($rows)
    						{
    							foreach($rows as $row)
    							{
    							?>
    
    							<li>
    								<a href="<?php echo $row['file']; ?>">
    									<?php echo $row['title']; ?>	
    								</a>
    							</li>
    				
    							<?php
    							}
    						}
    					?>
    					</ul>
    					<p class="meta">
    						<?php if($country) echo 'Country: ' . $country . '<br>'; ?>
    						<?php if($year) echo 'Year: ' . $year . '<br>'; ?>
    						<?php if($topics) echo 'Topics: ' . $topics . '<br>'; ?>
    					</p>
    					<div class="bar mt25 mb30"></div>
    					
    					<?php endwhile;
    	  				
    	  				if(function_exists('wp_pagenavi')) { 
    	  					wp_pagenavi(); 
    	  				}
    	 				else { 
    						if (  $wp_query->max_num_pages > 1 ) :
    							next_posts_link( __( '&larr; Older posts', 'amplify' ) );
    							previous_posts_link( __( 'Newer posts &rarr;', 'amplify' ) );
    						endif;
    					}
    					
    					else : ?>
    					<h1><?php _e( 'Not Found', 'amplify' ); ?></h1>
    					<p><?php _e( 'Apologies, but no results were found for that search.', 'amplify' ); ?></p>
    
    					<?php endif; ?>
    
    				</div>
    
    				<!-- Begin Sidebar -->
    				<?php include('sidebar-reports.php'); ?>
    				<!-- end sidebar -->
    						
    				<div class="clear"></div>
    
    			</div><!-- end div.entry -->
    			
    		</div><!-- end div.entries -->
    
    		<div class="clear"></div>
    		
    	</div><!-- end div#main -->
    	
    	<div class="clear"></div>
    	
    </div><!-- end div#main_container-->
    
    <?php get_footer(); ?>

    I also found single-reports.php

    <?php
    /**
     * The Template for displaying all single posts.
     *
     */
    
    get_header(); ?>
    
    <div id="main_container">
    
    <!-- IE7 float fix --><!--[if lt IE 7]><span class="iefix">.</span><![endif]-->
    
    	<div class="main">
    	
    			<div class="entries_full">
    			
    				<div class="entry_full">
    				
    <?php
    $portfolio_cat = get_option('bb_portfolio_cat');
    if($portfolio_cat == 'Choose a category') {$portfolio_cat = 'portfolio';}
    if ( in_category($portfolio_cat) ) {
    include ('portfolio_single.php');
    }
    else {
    ?>
    				
    				<div class="box_twothirds mt30 pr60">
    				
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    				<?php 
    
    					$country = get_the_term_list( $post->ID, 'report_country','', ', ', '' );
    					$year = get_the_term_list( $post->ID, 'report_year','', ', ', '' );
    					$topics = get_the_term_list( $post->ID, 'report_topic','', ', ', '' );
    
    					?>
    		 
    		 			<?php $count++; if($count > 3) { $count = 1; } ?>
    	 
    					<h4 class="<?php if($count > 1) echo "mt25 "; ?>mb12"><?php the_title(); ?></h4>
    					<?php the_content(); ?>
    					<ul class="files">
    					<?php
    						$rows = get_field('attachments');
    
    						if($rows)
    						{
    							foreach($rows as $row)
    							{
    							?>
    
    							<li>
    								<a>">
    									<?php echo $row['title']; ?>	
    								</a>
    							</li>
    				
    							<?php
    							}
    						}
    					?>
    					</ul>
    					<p class="meta">
    						<?php if($country) echo 'Country: ' . $country . '<br>'; ?>
    						<?php if($year) echo 'Year: ' . $year . '<br>'; ?>
    						<?php if($topics) echo 'Topics: ' . $topics . '<br>'; ?>
    					</p>
    					<div class="bar mt25 mb30"></div>
    				
    <?php endwhile; // end of the loop. ?>
    
    				</div>
    
    <!-- Begin Sidebar -->
    <?php include('sidebar-reports.php'); ?>
    <!-- end sidebar -->
    							
    				<div class="clear"></div>
    				
    <?php } ?>	<!-- end single post content -->
    
    				</div><!-- end div.entry -->
    				
    			</div><!-- end div.entries -->
    
    	<div class="clear"></div>
    		
    	</div><!-- end div#main -->
    	
    	<div class="clear"></div>
    	
    </div><!-- end div#main_container-->
    
    <?php get_footer(); ?>