Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter samlala5

    (@samlala5)

    Could you advise how to remove the parameters please?

    <?php
    /************************************************************************
    * Team members
    *************************************************************************/
    
    	global $post,$smof_data,$nzs_category;
    	$old = $post;
    
    	if(isset($smof_data['nzs_team_cols'])){
    
    		switch ($smof_data['nzs_team_cols']) {
    			case 2:
    				$team_column_num = "eight columns";
    
    			break;
    
    			case 3:
    				$team_column_num = "one-third column";
    
    			break;
    
    			case 4:
    				$team_column_num = "four columns";
    
    			break;
    
    			default:
    				$team_column_num = "four columns";
    			break;
    		}
    
    	}else{
    
    		$team_column_num = "four columns";
    
    	}
    
    	$target_window = $smof_data['nzs_social_target'];
    
    	$portfolio_query = new WP_Query( array( 'post_type' => 'team_members', 'posts_per_page' => -1, 'order' => 'ASC','filter_team'=>$nzs_category  ) ); 
    
    		if($portfolio_query->have_posts()): while($portfolio_query->have_posts()) : $portfolio_query->the_post();
    
    		$team_link = get_post_meta(get_the_ID(), 'nzs_team_link_option', true);
    		$team_link_window = get_post_meta(get_the_ID(), 'nzs_team_link_window', true);
    
    ?>
    
    	<div class="<?php echo $team_column_num; ?> project">
    			<div class="gallery-padding">
    				<div class="img-frame">
    
    					<div class="image-wrapper wp-colorbox-image cboxElement"  href="<?php echo get_permalink();?>">
    
    				<?php
    				if(has_post_thumbnail()){
    			 		// $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'team-thumbnail');
    			 		$thumb = nzs_get_post_image(get_post_thumbnail_id());
    				?>
    
    				<div class="team-image">
    
    					<?php if($team_link){?>
    
    					<a href="<?php echo esc_url($team_link);?>" target="<?php esc_attr_e($team_link_window); ?>"><img src="<?php echo $thumb;?>" alt="" class="rounded scale-with-grid"></a>
    
    					<?php }else{ ?>
    
    					<img src="<?php echo $thumb;?>" alt="" class="rounded scale-with-grid">
    
    					<?php } ?>
    
    				</div>
    
    				<?php
    				}else{
    				?>
    
    			<div class="team-image">
    
    					<?php if($team_link){?>
    
    					<a href="<?php echo esc_url($team_link);?>" target="<?php esc_attr_e($team_link_window); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/team-holder.jpg" alt="" class="rounded scale-with-grid"></a>
    
    					<?php }else{ ?>
    
    					<img src="<?php echo get_template_directory_uri(); ?>/assets/img/team-holder.jpg" alt="" class="rounded scale-with-grid">
    
    					<?php } ?>
    
    				</div>
    
    				<?php
    				}
    		?>
            		<div class="team-details">
    				<h5><?php the_title();?></h5>
    				<?php the_excerpt();?>
                    <?php $rdmore = get_the_permalink($post->ID);?>
    
        			</div>
                    <div class="read"><?php echo do_shortcode('[wp_colorbox_media url="'.$rdmore.'" type="image" hyperlink="READ MORE"]');?></div>
    			</div>
    
    			</div>
    		</div>
            </div>
    	<?php
    	endwhile;
    	endif;
    
    $post = $old;
    
    ?>
    Thread Starter samlala5

    (@samlala5)

    Hi naa986,

    Thanks for the reply!

    This site was migrated from a previous but corrupt installation of WP. That site had the pages for each team member and did not lead to a 404 error. I imported the content and settings from the old site, and have not set the URL parameter on the team profiles.

    Could you advise how to remove the parameters please?

    The site uses the 907responsive theme.

    Thanks again.

    Thread Starter samlala5

    (@samlala5)

    Hi Laliz,

    Since sending my last message, I tried uploading wp-includes again and received a notice to update database and site is working as normal. I think I issues with my previous ftp programme may have resulted in the files not uploading correctly in my attempts to back-up, but it doesn’t explain the initial crash. Thanks so much for your assistance. I really appreciate that you took the time to reply.

    I still need to update WP again, and hope that it won’t crash.

    Thanks.

    Thread Starter samlala5

    (@samlala5)

    Hi Laliz,

    Thanks so much for your suggestion! I tried that and I could access CSS. I can access the main dashboard page but not other sections within the dashboard like themes.php

    I have disabled my custom theme, but this has not helped.

    Could it be an issue with the database?

    I’m open to any other suggestions.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)