Slider links in php
-
I would like to add links to the slider on this website – https://www.drblen.com.
Here is the code that the template uses for the slider:
<?php $limittext = $limit;?> <?php global $more; $more = 0; $counter=1;?> <?php query_posts("posts_per_page=5&post_type=slider");?> <?php if(have_posts()) { ?> <ul class="kwicks horizontal"> <?php while (have_posts()) : the_post(); ?> <?php $custom = get_post_custom($post->ID); $custom = get_post_custom($post->ID); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'slider-post-thumbnail' ); $url = $thumb['0']; $thumb = $custom["thumb"][0]; $sliderurl = $custom["slider-url"][0]; ?> <li><span class="shadow"></span> <?php echo '<div class="thumb">'; ?> <div class="bg" style="background-image:url(<?php echo $url; ?>)" ></div> <?php echo '</div>'; ?> <div class="desc color-<?php echo $counter; ?>"> <div class="left-bg"> <a href="<?php the_permalink(); ?>" class="left-bg"><?php the_title('<h2>','</h2>'); ?></a> <div class="excerpt"> <?php the_excerpt(); ?> </div> <a href="<?php the_permalink(); ?>" class="kwick-button">read more</a> </div> </div> </li> <?php $counter++; endwhile; ?> <?php wp_reset_query(); ?> </ul> <?php } else { ?> <div id="attention-box"> <div id="att-box-inner"> <div class="attention-box alert-box" style="margin: 150px 20px 0 20px;">You don't have any <strong>Slides</strong>. You need to create them using <strong>Slides</strong> custom post type.</div> </div> </div> <?php } ?> <?php wp_reset_query();?>
Any help would be greatly appreciated. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Slider links in php’ is closed to new replies.