-
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:
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 ?>
- Theme support is offered to verified customers only. To post a topic go to your Theme Category and add your question at the page bottom.
Theme Categories
Recent Topics
- Alea updates
- Why "Fortune" theme is no longer available?
- PHP 8.1 Error
- Issue with WPB editor icons
- Issue with Icons and Text Alignment for Arabic Content
- Installing and Activating Plugin Fortuna Portfolio CPT (1/8)
- Testimonials page is blank
- warning boc_framework line 905
- Transparent header issue without changes
- Slider Revolution error