problem with sliders plugin
-
Hello,
I have a problem regarding a plugin in my own theme.
I have a content slider included in my website following code:
<div id="mygallery" class="stepcarousel"> <div class="belt"> <?php $temp_query = $wp_query; ?> <?php query_posts('cat=3'.'&showposts=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="panel"> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <?php $gallery = get_post_meta($post->ID, 'Thumbnail', $single = true); ?> <img src="<?php echo $gallery ?>"> </div> <?php endwhile; else: ?> <?php endif; ?> </div> </div> <div class="clear"></div>
For some reason the following codeline “<?php query_posts(‘cat=3’.’&showposts=5′); ?>” is not really working as expected.
Its also changing the content of my whole page. So it even shows the content from the newsslider in the main body of my site where other content like other page content should be. Strange thing: when I change the query_post to get_post its picking the content from the main content area but not from the latest posts.
Hope my problem is clear and hope you guys have some kind of solution.
link to website with the problem: https://projectgroep3.ic3d.nl/
Kind regards,
Erik
- The topic ‘problem with sliders plugin’ is closed to new replies.