asad.fida
Forum Replies Created
-
Forum: Plugins
In reply to: [GC Testimonials] The Pagination does not workingForum: Plugins
In reply to: [GC Testimonials] The Pagination does not working@chris Dillon
I have an issue that pagination not work for me in testimonials.I am using clean-testimonials plugin.Here is the link to my problem tinkergarten.com/class/fall14-age2-wedsb-centralpark-manhattan/
Please go to this link and the go to Reviews tab.there are two testimonials and paginate links (1 2 Next).page 1 is selected currently and when you will click to 2 or Next it will redirect to the same page tinkergarten.com/class/fall14-age2-wedsb-centralpark-manhattan/ rather to go http://tinkergarten.com/class/fall14-age2-wedsb-centralpark-manhattan/page/2please help for this issue.
Forum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for meHi lukerollans
Displaying testimonials is not a issue, issue is testimonials pagination not works.Here is the link Tinker go to this link and open“Reviews tab”
and click on the pagination link 2 or next it does not show the next testimonials rather it redirects to the same page.
Hope now you will get the real issue if not let me know.
Thank you for your intrest.Forum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for meI am using clean testimonial plugin and this is the code of clean testimonial, this plugin has built-in functionality for displaying testimonials.I a not displaying by my code.
Forum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for meI am using clean testimonial plugin and this is the code of clean testimonial, this plugin has built-in functionality for displaying plugins.
Forum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for me@lukerollans
My issue is like this thread Link to thread
but the solution this provides is for Woocommerce 2.0.0 but i am using 2.2.2 so help me out of this issue.
Thanks.Forum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for meHi lukerollans,
Here is my full codefunction shortcode_testimonials ($atts) { $args = array( 'posts_per_page' => isset( $atts['per_page'] ) ? $atts['per_page'] : 2, 'paged' =>get_query_var( 'paged' ), 'order' => isset( $atts['order'] ) ? $atts['order'] : 'DESC', 'orderby' => isset( $atts['orderby'] ) ? $atts['orderby'] : 'date', 'post_type' => 'testimonial ); $output = ''; if( isset( $atts['category'] ) ) { $ids = explode( ',', $atts['category'] ); $slugs = array(); foreach( $ids as $id ) { if( $term = get_term_by( 'id', $id, 'testimonial_category' ) ) { $slugs[] = $term->slug; } } $args['testimonial_category'] = implode( ',', $slugs ); } if( query_posts( $args ) ) { if( have_posts() ) { ob_start(); echo '<div class="testimonial-category">'; while( have_posts( ) ) { the_post(); $testimonial = new WP_Testimonial( get_the_ID() ); $testimonial->word_limit = ( isset( $atts['word_limit'] ) && is_numeric( $atts['word_limit'] ) ? $atts['word_limit'] : -1 ); $testimonial->render(); } if( function_exists( 'wp_paginate' ) ) { wp_paginate(); } else { echo '<div class="testimonial-pagination">'; global $wp_query; $big = 9999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); echo '<button type="button">click Me</button>'; echo '</div>'; } echo '</div>'; $output = ob_get_contents(); ob_end_clean(); } wp_reset_query(); return $output; } } add_shortcode( 'testimonials', 'shortcode_testimonials' );Forum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for meForum: Plugins
In reply to: [Clean Testimonials] Pagination not works in clean testimonials for meWill someone help me please??