pagination pointing to a Div Id
-
Hello community.
My question is simple, can I paginate getting an url type: https://mypage.com/page/2/#mydiv ???
Its becouse the content I need to paginate its located at the bottom of my page, so when paginating normally it reloads the page letting me at the top, where’s an image banner.
I write my code:
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts=3&category_name=herramientas'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="midrow_block mid_borde"> <div class="mid_block_content mid_borde"> <div class="block_img"><div class="icon_wrap"> <?php the_post_thumbnail('herramientas'); ?></div></div> <h3><?php the_title(); ?></h3> <p><?php the_content(); ?></p> </div><!--END mid_block_content --> </div><!-- END midrow_block--> <?php endwhile; ?> </div><!--END midrow_block_wrap --> </div> </div> <div class="clear"></div> <div class="pagination"> <div class="wp-pagenavi"><?php previous_posts_link('« Anterior') ?> <?php next_posts_link('Siguiente »') ?></div> </div>
- The topic ‘pagination pointing to a Div Id’ is closed to new replies.