Hi,
I have a static home page as the main page on my site and have the slider working from a featured image from that static home page.
I have only been able to get the slider working setting a featured image on the homepage however this has caused me to only be able to select 1 image.
I read that you are supposed to create a post and set a featured image in that.
The issue is the slider doesnt work at all with the posts featured images.
I set a post category and created 2 standard posts under that category each with a featured image. I have even chosen the post category to use in the dazzling slider settings.
If anyone has any ideas please let me know. I would appreciate it.
Thanks for looking at my site. I found in the documentation:
“Dazzling theme relies on Flexslider image slider which is built in into theme and no plugin is required.”
I have tried to search for Flexslider under wordpress plugins and im not sure which one to choose as there is a few with flexslider in the name. I have found another one created by WooThemes which I was able to download the zip from the website. I have unzipped into the themes directory however I cant see it when I go to plugins to activate it.
I would appreciate if you can please let me know where to obtain the plugin and how to get it installed.
It seems like a bug, I tested until now, but I could not solve it. I will forward the issue to the developer team. I will get back to you as soon as possible.
@frankdieni I logged in to your shared site and saw you were overwriting the below dazzling theme slider function to use pages in the slider which was causing this issue.
I just remove the below custom function from your dazzling child theme and it is working fine now.
Could you please check it and let me know whether it is working fine for you?
/**
* Featured image slider
*/
function dazzling_featured_slider() {
if ( is_front_page() && of_get_option('dazzling_slider_checkbox') == 1 ) {
echo '<div class="flexslider">';
echo '<ul class="slides">';
$count = of_get_option('dazzling_slide_number');
// $slidecat = of_get_option('dazzling_slide_categories');
if ( $count ) {
$query = new WP_Query( array( 'posts_per_page' =>$count, 'post_type' => 'page', 'meta_key' => 'slider_page' ) );
// print_r($query);
if ($query->have_posts()) :
while ($query->have_posts()) : $query->the_post();
echo '<li>';
if ( has_post_thumbnail() ) { // Check if the post has a featured image assigned to it.
the_post_thumbnail();
}
echo '<div class="flex-caption">';
echo '<a href="'. get_permalink() .'">';
if ( get_the_title() != '' ) echo '<h2 class="entry-title">'. get_the_title().'</h2>';
if ( get_the_excerpt() != '' ) echo '<div class="excerpt">' . get_the_excerpt() .'</div>';
echo '</a>';
echo '</div>';
endwhile;
endif;
} else {
echo "Slider is not properly configured";
}
echo '</li>';
echo '</ul>';
echo ' </div>';
}
}