WordPress.org

Ready to get started?Download WordPress

Forums

WP-Paginate
[plugin WP-Paginate] WP Paginate not displayed (2 posts)

  1. bebra
    Member
    Posted 4 years ago #

    hi there!
    i've been trying to use your plugin, vut it doesn't work...
    here's my website: http://www.alicebaum.it
    i use the wpesp postfolio theme http://wpesp.com/
    i just want the thumb to show previous pages. here's where i put the code:
    (in home page template)

    <!-- =============================================================
    #WORKS
    ============================================================= -->
    <div id="works">
    <div class="minus14">
    <?php // Featurd Work goes first
    $the_query = new WP_Query('category_name=featured&orderby=rand&showposts=1');
    while ($the_query->have_posts()) : $the_query->the_post();
    $do_not_duplicate = $post->ID;

    // We show just one post of category work and don't duplicate it after | http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action
    ?>

    <div class="thumb">
    " title="leggi tutto - <?php the_title_attribute(); ?>"><img src="<?php $src_thumb_value = get_post_meta($post->ID, "src_thumb_value", true); echo $src_thumb_value; ?>" width="276" height="115" alt="<?php the_title_attribute(); ?>" title="Thumb of <?php the_title_attribute(); ?>" />
    </div><!-- .thumb -->

    <?php endwhile; ?>

    <?php // Rest of works
    if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts);
    // http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action
    ?>

    <div class="thumb">
    " title="leggi tutto - <?php the_title_attribute(); ?>"><img src="<?php $src_thumb_value = get_post_meta($post->ID, "src_thumb_value", true); echo $src_thumb_value; ?>" width="276" height="115" alt="<?php the_title_attribute(); ?>" title="Thumb of <?php the_title_attribute(); ?>" />
    </div><!-- .thumb -->

    <?php endwhile; endif; ?>
    <?php if(function_exists('wp_paginate')) {
    wp_paginate();
    } ?>
    </div><!-- .minus14 -->
    </div><!-- #work -->

    </div><!-- #slider -->

    <?php get_footer(); ?>

    ---
    thanks for your help!
    best

    barbara

  2. Eric Martin
    Member
    Plugin Author

    Posted 4 years ago #

    With the formatting of your post, it's difficult for me to make out what is happening.

    It looks like you are using a different plugin now, did that work for you?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic