[Plugin: Yet Another Related Posts Plugin] Templates’ incompability with php function calls provided
-
I spoke to @yarpp on Twitter and I was told to explain my problem further, so here I go.
I had edited a template provided with the plugin back in May to provide a YouTube-like display of related posts, as they all contain video players with videos and I came up with this. This included Woo themes’ custom function for displaying thumbnails and the call to display number of views, from Lester Chan’s WP Post-Views plugin.
<?php /* Example template Author: mitcho (Michael Yoshitaka Erlewine) */ ?> <?php if ($related_query->have_posts()):?> <ol> <?php while ($related_query->have_posts()) : $related_query->the_post(); ?> <li> <?php woo_get_image('image','64','64'); ?> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><br /> <small><?php if(function_exists('the_views')) { the_views(); } ?></small></li> <?php endwhile; ?> </ol> <?php else: ?> <p>No related posts.</p> <?php endif; ?>
This worked well until the YARPP update yesterday. The related posts are still displayed, but it seems to be ignoring the calls for these two functions. I was wondering how to solve this as I literally did not touch anything.
Thanks in advance!
https://www.ads-software.com/extend/plugins/yet-another-related-posts-plugin/
- The topic ‘[Plugin: Yet Another Related Posts Plugin] Templates’ incompability with php function calls provided’ is closed to new replies.