slider problem
-
I set elogix theme to my new wp site and just have a problem.
in work page my slide are not displayed.elogix demo: https://elogix.mintithemes.com/work/alice/
my site: https://amirian-co.com/?work=sdfs
code of displaying slide:
<?php if( get_post_meta( get_the_ID(), 'minti_embed', true ) == "" ){ ?> <div id="work-slider" class="flexslider2"> <ul class="slides"> <?php global $wpdb, $post; $meta = get_post_meta( get_the_ID( ), 'minti_screenshot', false ); if ( !is_array( $meta ) ) $meta = ( array ) $meta; if ( !empty( $meta ) ) { $meta = implode( ',', $meta ); $images = $wpdb->get_col( " SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND ID IN ( $meta ) ORDER BY menu_order ASC " ); foreach ( $images as $att ) { // Get image's source based on size, can be 'thumbnail', 'medium', 'large', 'full' or registed post thumbnails sizes $src = wp_get_attachment_image_src( $att, 'work-detail' ); $src = $src[0]; // Show image echo "<li><img src='{$src}' /></li>"; } } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘slider problem’ is closed to new replies.