Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, There are two issues here:

    1) You are telling the plugin to pop up an image but you have specified a page URL in the “url” parameter.

    https://www.dgcapital.co.za/team_members/neil-daitz/

    2) The page URL that you have specified is not valid. It goes to a 404 (not found) page.

    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)

    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;
    
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content failed to load’ is closed to new replies.