Support

Account

Forum Replies Created

  • Thanks again – I am feeling soo happy to have this sorted
    I think I’ll breathe deeply- give it a few days to make sure I have everything functioning on the site and then I’ll upgrade and purchase the repeater field plugin. In the meantime I’ll do as you suggest to avoid accidental updates…

  • This reply has been marked as private.
  • sorry- another newbie mistake.
    I think I love you! It works!!!!!
    I had to fiddle with a few bits (change file type to file and change return value to file url and also add a rule to make it work the right post types).

    Thank you so much for all your patience and help and putting up with all my silly mistakes. I have learned a lot.

  • 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(); ?>
  • Okay- I managed to roll back and it worked!!!! Thank you.

    I still have one problem – when I was trying to work out earlier what the problem was I tried changing the field type (this is before your helpful tips so i didn’t know about backing up field definitions though I have at least previously backed up all the files and database for the website). It was just coming up with an error message and so I clicked on ‘file’ in the drop down menu to see whether selecting something would resolve it. Obviously it didn’t. So now that I have rolled back to the older version all the the other custom fields are working except this one. This is the most important one because it was the one which allowed me to attach reports. I tried changing it to ‘repeater’ which seems to have removed the error message on the website. But the function to add an attachment doesn’t come up – strangely I can see what looks to be half images of where the attachments should be even though I can’t see anything when I try and edit the individual report entries. e.g. if you look at http://hiaconnect.edu.au/reports/ and look at the space between the text about the report and the country listing there is a funny line (or two or three depending on how many attachments there once were) which looks like the top of the symbol for a pdf file…
    Any ideas?
    Thanks again for all your help. You are a life saver.

  • Thanks -I’ll give it a go. My only issue is that there is no pre update back up of anything. Someone else set up the website and somehow I have been left administering it with unfortunately no experience or expertise in this. The person who set it up is no longer available to provide support and unfortunately didn’t do any back ups as far as I can tell. I have now backed up everything (hopefully).
    My main concern is to restore functionality to the site – it would be a crappy job re uploading all the information and files but I could cope with that as long as I have a functional site again.
    I’ll let you know how I get on.

  • thanks- okay another naive question – how do I roll back to V3?

Viewing 7 posts - 1 through 7 (of 7 total)