Function replacing numbers in my URL

This topic contains 1 reply and 2 voices, and was last updated by SEAN 9 years, 10 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 25, 2014 at 11:00 pm 19418
SEAN Im using a temporary URL "http://eae.4f9.sampleurl.com/". The pagnation function is changing the "9" in my URL to the page number. So the pagnation links look like this. http://eae.4f1.sampleurl.com/ http://eae.4f2.sampleurl.com/ http://eae.4f3.sampleurl.com/ http://eae.4f4.sampleurl.com/ Here is the function.
 <?php
                wp_reset_postdata();

                if ( $product_query->max_num_pages > 1 ) {
                    echo '<div class="pagination-wrap">';
                    $page_links = paginate_links( array(
                        'current' => max( 1, get_query_var( 'paged' ) ),
                        'total' => $product_query->max_num_pages,
                        'base' => str_replace( $post->ID, '%#%', esc_url( get_pagenum_link( $post->ID ) ) ),
                        'type' => 'array',
                        'prev_text' => __( '&laquo; Previous', 'dokan' ),
                        'next_text' => __( 'Next &raquo;', 'dokan' )
                    ) );

                    echo '<ul class="pagination"><li>';
                    echo join("</li>\n\t<li>", $page_links);
                    echo "</li>\n</ul>\n";
                    echo '</div>';
                }
                ?>
January 8, 2015 at 11:15 pm 33679
SEAN SEAN

I saw your post – did you ever get this solved?

Viewing 1 Posts - 1 through 1 (of 1 total)