post thumbnail slider.
-
hello,i want to put the slider in the thumbnails of my posts,the site is https://www.kinono.org.
the default code of the theme is
<article id="post-<?php the_ID(); ?>" <?php post_class('athena-blog-post reveal fadeInUp'); ?>> <?php if (get_post_thumbnail_id($post->ID)) : ?> <div id="athena-posts-image"> <a href="<?php echo esc_url(get_the_permalink()); ?>"> <?php echo the_post_thumbnail('large'); ?> </a> </div>
I tried also
<article id="post-<?php the_ID(); ?>" <?php post_class('athena-blog-post reveal fadeInUp'); ?>> <?php if (get_post_thumbnail_id($post->ID)) : ?> <div id="athena-posts-image"> <?php echo do_shortcode('[dynamic-featured-images anchor =false slider='slick' sliderproperties='slidesToShow: 3, slidesToScroll:3 dots:true']'); ?> </div
but when i tried it it appears a internal server error
and i also tried
<article id="post-<?php the_ID(); ?>" <?php post_class('athena-blog-post reveal fadeInUp'); ?>> <?php if (get_post_thumbnail_id($post->ID)) : ?> <div id="athena-posts-image"> <div class="dfiFeatured"> < a title="" class"" href="full-image-url"> <figure> <img alt="alt text defined in admin" class"dfiImage" src="thumbnail-url"/> </figure> </a> </div>
and it appears the divs and the alternative text but no the images
Can you help me ,because im a little hurry
i have the pro versionThank you
- The topic ‘post thumbnail slider.’ is closed to new replies.