Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t know if your still having this issue, but I got it working for me by doing this:

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular('posts_per_page=4'); ?>

    No problem!!! If you get stuck on something I’d be glad to help you debug it. Im subscribed to this feed, so Ill see more comments as they come in.

    @pippin is there a way to grab the total number of terms without specifying a specific number, as the number of terms vary between each series. the only way to get your code to work is if I add ” ‘number’ => 6 ” to the array but then it only shows 3 terms on the first page and 3 terms on the second page even though there are more than those 6. I hope I make sense and forgive me for my noob skill level.

    You could run a loop before you run your loop that displays the total number of items.

    The first loop would count how many items are available and pass that number to a variable, then your second loop prints the HTML code out foreach item, but uses the variable you established in the first loop to determine how many to print.

    You could use something like http://bxslider.com/ to do the jquery part.
    Its really simple, look at their examples on there.

    Also, check this out: http://codex.ww.wp.xz.cn/Function_Reference/get_taxonomies

    For the PHP part, maybe something like this:

    <?php
    $taxonomies=get_taxonomies('','names');
    foreach ($taxonomies as $taxonomy ) {
      echo '<a href="#">'. $taxonomy. '</a><br><br>';
    }
    ?>

    Then I’m thinking if you somehow put in a loop counter to add in a div every 10 items. So the formatted HTML looks like this:

    <div>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    </div>
    <div>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    </div>
    <div>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    <a href="#">Taxonomy</a><br><br>
    </div>
    [...]

    You could then use bxslider to page through each div 1 at a time. Fading and vertical or horizontal animations are built in to the script.

    As for the loop counter part to add the div… Ive done it before, but I forget what i did off the top of my head.

    Another idea I just had is maybe you could pass the taxonomies to a foreach loop then iterate them out to lets say 100, if you want 10 pages of 10. Then use jQuery to separate them into 10 separate views to the user.

    That way your not forcing WordPress to do something wild and you can still make it seamless to the user.

    The user may prefer that anyway because then there is no lag between switching pages.

Viewing 5 replies - 1 through 5 (of 5 total)