Portfolio Page: Get Rid of 'Related' blurbs


  • Member
    jmpublications
    September 18, 2016 at 12:48 am #29911

    Hi. I’ve tweaked the php in single-portfolio.php so I can use it as a special page, rather than a image portfolio, that uses the related projects carousel. My changes worked well, but now I’ve noticed there is just a small extra block of *text* related posts, that I don’t want, and I can’t find anything in the php that indicates where that is so I can cut it out. I have a screen shot of it here:

    http://www.maaspublications.net/testsite/FEE/wp-content/uploads/2016/09/Screen-Shot-2016-09-17-at-2.43.19-PM.png

    Here’s the original php:

    <?php // IF Post type is Standard (false) 	
    		if(function_exists( 'get_post_format' ) && get_post_format( $post->ID ) != 'gallery' && get_post_format( $post->ID ) != 'video' && has_post_thumbnail()) { ?> 
    
    		        	<?php if(has_post_thumbnail()): ?>
    
    						<?php $attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'portfolio-full'); ?>
    						<?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'portfolio-full'); ?>
    						<?php $attachment_data = wp_get_attachment_metadata(get_post_thumbnail_id()); ?>
    						<div class="pic animationStart">
    							<a href="<?php echo $full_image[0]; ?>" rel="prettyPhoto['gal']" title="<?php echo $attachment->post_title; ?>">
    							  	<img src="<?php echo $attachment_image[0]; ?>" alt=" "/><div class="img_overlay_zoom"></div>			  		
    							</a>
    						</div>
    						<div class="h40"></div>	
    						
    					<?php endif; ?>
    
    		
    		<?php } // IF Post type is Standard :: END ?>

    and here is what it is now:

    <?php // IF Post type is Standard (false) 	
    		if(function_exists( 'get_post_format' ) && get_post_format( $post->ID ) != 'gallery' && get_post_format( $post->ID ) != 'video' && has_post_thumbnail()) { ?> 
    
    		        	
    
    		
    		<?php } // IF Post type is Standard :: END ?>

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.