domainpubber
Member
Posted 2 years ago #
I love this plugin! But there are a couple of issues I have run into:
1. The excerpts are being duplicated for all of my featured posts. You can see on this site what I'm talking about: http://www.raftertales.com/
2. The plugin generates a number of errors when you run the W3C validator. I'm wondering if this can be remedied in an upcoming version?
Thanks to anyone for help you can provide in troubleshooting the 1st issue.
http://wordpress.org/extend/plugins/feature-slideshow/
Neil De Souza
Member
Posted 2 years ago #
Hi. By any chance have you managed to resolve this issue?
domainpubber
Member
Posted 2 years ago #
Hi Neil. Unfortunately not. As an interim workaround I have removed the excerpts for now by editing the plugin files, but this is certainly not optimal. I wish the author would update the plugin so that this functionality works correctly. It really is a nice plugin otherwise.
I too would be interested in using this plugin if this issue is resolved. Sorry for jumping on your thread but I wanted to subscribe to it :)
Neil De Souza
Member
Posted 2 years ago #
OK. I managed to resolve the issue with a change in the code in the feature_slideshow_body.php
$fs_height = ($feature_slideshow_settings['numberposts'] * 81) - 1;
$fs_width = $feature_slideshow_settings['width'] - 287;
$posts = get_posts("numberposts=" . $numberposts . "&orderby=" . $orderby . "&post_parent=" . $post_parent . "&post_type=" . $post_type . "&category=" . $category . "&tag=" . $tag);
$my_query = new WP_Query('category_name=featured&posts_per_page=4');
if($posts) {
while ($my_query->have_posts()) : $my_query->the_post();
setup_postdata($post);
$return .= '<li>
<a href="' . get_permalink($post->ID) . '">
<h3>' . get_the_title($post->ID) . '</h3>
<span>' . feature_slideshow_excerpt(12) . '</span>
</a>
</li>';
endwhile;
}
As you can see I have replaced the foreach loop with a while loop which gave me better control over the presentation. I also had to hard code the category name featured into the WP_query
Let me know if this works for you'll guys as well. Good luck. Thanks.
Neil De Souza
Member
Posted 2 years ago #
domainpubber - Don't forget to resolve this topic