WordPress.org

Ready to get started?Download WordPress

Forums

multiple posts in content slider (2 posts)

  1. egeyisi
    Member
    Posted 5 years ago #

    Hello. I have a complicated pagination problem. I'll try to explain it briefly.

    I use Dynamic Drive Featured Content Glider Script combined with my loop. I've already made this combination by using query tags long time ago and there is no problem.

    But using the same script I just want to add another feature. I need to show 5 post links in one gliding page. In other words, I want to make my glider show my articles not 1 by 1 but 5 by 5.

    To make ist more visible for you, here is the current result of my hack: http://www.s39816.gridserver.com/?tag=galatasaray . As it is seen, the articles show up one by one. So i want it to be shown five by five.

    And here is the current code that I use:

    <div id="canadaprovinces" class="glidecontentwrapper">
    <?php $current_tag = single_tag_title("", false);
    query_posts(array(
    'cat'=>'237',
    'tag_slug__and'=>array($current_tag),
    'showpost'=>'2',
    ) );
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="glidecontent">
    <div id="katkata">
    <ul>
    <li>
    <?php $values = get_post_custom_values("fotograf");
    if ( !empty($values) ) {
    echo '<img src=' . $values[0]. ' ' . '>';
    }
    else {
    echo '';
    }
    ?><a href="<?php the_permalink() ?>" rel="bookmark"><u><b><?php the_title(); ?></b></u><br />
    <?php the_excerpt(); ?></a>
    </li>
    </ul>
    </div>
    </div>
    <?php endwhile; ?>
    <div id="p-select" class="glidecontenttoggler">
    <a href="#" class="prev">Prev</a>
    <a href="#" class="next">Next</a>
    <?php endif; ?>
    </div>

    What kind of manipulation can make it work as wish in your opinion?

    Thank you.

    Erhun

  2. egeyisi
    Member
    Posted 5 years ago #

    Sorry I forgot to link the original page of the script that I use. Here it is:

    http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm

    thanx a lot

    erhun

Topic Closed

This topic has been closed to new replies.

About this Topic