Custom Thumbnail PHP from previous version now not working
-
i was using the previous version of YARPP with the following custom template:
<br><br><div class="related_posts"> <h2>If You Liked This, Check Out:</h2><br> <?php if ($related_query->have_posts()):?> <ul> <?php while ($related_query->have_posts()) : $related_query->the_post(); ?> <?php if (function_exists('has_post_thumbnail')): if (has_post_thumbnail()):?> <li> <div class="related_thumbnail"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(150,150)); ?></a> </div> <div style="clear:both;"></div> <div class="related_permalink"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div> </li> <?php endif; endif; ?> <?php endwhile; ?> </ul> <?php else: ?> <p>No related photos.</p> <?php endif; ?> </div>
this was titled yarpp-template-thumbnail.php
everything worked perfectly. since the upgrade, though, now only the <h2> title appears – no images, no text.
I’m using Headway version 2.0.14. and here’s my site: https://www.nonstopawesomeness.com (YARPP available on single post pages).
i’m pretty simple when it comes to code – i can copy/paste, but i don’t know how to write php files.
thanks for any help!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Thumbnail PHP from previous version now not working’ is closed to new replies.