taxonomy Pagination Please help !
-
I feel I was so close to figuring out this problem but I have been on this for 3 days so far.. and I just can’t figure it out ..someone please teach me what I must do to include the pagination on this page…
It is already working well within the blog archive section of the website…
I know how to get the pagination working on a page that displays a posts … but I have limited knowledge of php and can not get the pagination to work within this specific page because of the fact that I have it kind of set up weird it isn’t a normal archive page that is querying posts.. but i have it displaying just taxonomy terms..
please have a look and apologies for my horrible explanation !
Here is the link to the page in question –
lightinthecity.com/resourcesThe pagination code is already inside the code but I am sure that it is in the wrong place! here is the pagination code
global $paged;<- under the first php tag and'paged' => $pagedbeing called by an array .. I don’t know what I am doing wrong but I have made it so far..Here is the complete code currently being used for this page
<?php get_header(); ?> <div id="body"> <!-- Body start --> <div class="box" id="boxsermons"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <p style="float:left;clear:left;margin-top:25px;clear:left;font-size:15px;letter-spacing:4px;line-height:15px;font-family: Georgia, serif;font-style: normal;font-weight: normal;text-transform:uppercase;padding-left:40px;padding-top:5px;padding-bottom:5px;padding-right:5px;background-color:#222;">RECENT SERIES</p> <p style="float:right;clear:right;margin-top:25px;font-size:15px;letter-spacing:4px;line-height:15px;font-family: Georgia, serif;font-style: normal;font-weight: normal;text-transform:uppercase;padding-left:5px;padding-top:5px;padding-bottom:5px;padding-right:0px;background-color:#222;">LATEST SERMON</p> <div id="latestseries"> <?php //list terms in a given taxonomy using wp_list_categories (also useful as a widget if using a PHP Code plugin) $taxonomy = 'series'; $orderby = 'ID'; $show_count = 1; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 0; // 1 for yes, 0 for no $title = ''; $order = 'DESC'; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'order' => $order, ); ?> <?php /*?><?php wp_list_categories(array('taxonomy' => 'series','number' => 2)); ?><?php */?> <?php global $paged; $args2 = array( 'paged' => $paged // set the current page ); $series = get_terms('series', $args, $args2,$paged); foreach($series as $s) { $theurl = get_term_link($s, 'series', $args2); echo "<div class=\"ser-img img\" ><a href=\"" . $theurl . $append . "\">". $taxonomy_images_plugin->get_image_html('large', $s->term_taxonomy_id) ."</a></div>"; echo "<div class=\"seriesdesc\" ><div class=\"seriesdesctxt\" ><div class=\"howmanysermons\">$s->count </div>". $s->description . "</div></div>"; }?> <div id="resourcenavhold"> <?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?> <div id="resourcenav">1</div> </div> <div style="height:5px;"></div> </div> <div class="recentmedia"> <?php query_posts( array( 'post_type' => 'sermon', $post->ID, 'series' , 'offset' => 0,'showposts' => 1 ,'orderby'=>'DESC' ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li><a class="fadeThis" a href="<?php the_permalink(); ?>"><span class="hover"><?php the_title(); ?></span></a></li> <?php endwhile; endif; wp_reset_query(); ?> </div> <p style="float:right;clear:right;margin-top:-30px;font-size:15px;letter-spacing:4px;line-height:15px;font-family: Georgia, serif;font-style: normal;font-weight: normal;text-transform:uppercase;padding-left:5px;padding-top:5px;padding-bottom:5px;padding-right:0px;background-color:#222;">RECENT SERMONS</p> <div class="recentmedia"> <?php query_posts( array( 'post_type' => 'sermon', $post->ID, 'series' , 'offset' => 1,'showposts' => 15 ,'orderby'=>'DESC' ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li><a class="fadeThis" a href="<?php the_permalink(); ?>"><span class="hover"><?php the_title(); ?></span></a></li> <?php endwhile; endif; wp_reset_query(); ?> </div> <?php endwhile; endif; ?> </div> <!-- Body end --> </div> <?php get_footer(); ?>Please help me in anyway possible !
Thank you in advance!!
The topic ‘taxonomy Pagination Please help !’ is closed to new replies.