Category page navigation

March 2014 WordPress Theme
GK User
Mon Jun 09, 2014 9:44 am
Hi,
I m trying to use WP-PageNavi plugin on all my categories pages so that my categories pages navigation display numeric navigation. but I don't know which .php file to modify in my the backend admin under: appearance >>>>> editor
Could you please advice
Thank you for your help

Regards
User avatar
Senior Boarder

GK User
Mon Jun 09, 2014 12:24 pm
Hello,

Please check this similar thread:
https://www.gavick.com/forums/rockwall- ... l?p=144198
User avatar
Moderator

GK User
Mon Jun 09, 2014 3:44 pm
Piotr Kunicki wrote:Hello,

Please check this similar thread:
https://www.gavick.com/forums/rockwall- ... l?p=144198


Thank you for your quick reply, I have just copied the:
function gk_paginate_navigation() {
global $wp_query;
$big = 999999999; // need an unlikely integer
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?page=%#%',
'total' => $wp_query->max_num_pages,
'current' => max( 1, get_query_var('paged') ),
'show_all' => True,
'prev_next' => True,
'prev_text' => __('« Previous', GKTPLNAME),
'next_text' => __('Next »', GKTPLNAME),
);
echo paginate_links( $args );
}
and paste it into either /wp-content/themes/News2/gavern/user.functions.php or /wp-content/themes/News2/gavern/helpers/helpers.layout.fragments.php
None seems to be working
User avatar
Senior Boarder

GK User
Tue Jun 10, 2014 7:48 am
Hi, you've copied the function, but did you call this function e.g. in your category file?

News2/category.php file instead of <?php gk_content_nav(); ?> use <?php gk_paginate_navigation(); ?>
User avatar
Moderator

GK User
Tue Jun 10, 2014 10:52 am
Piotr Kunicki wrote:Hi, you've copied the function, but did you call this function e.g. in your category file?

News2/category.php file instead of <?php gk_content_nav(); ?> use <?php gk_paginate_navigation(); ?>


Thanks for your reply, In my News2: Category Template (category.php) under Appearance >>> editor and in the file News2: Category Template (category.php), I have replaced <?php gk_content_nav(); ?> with <?php gk_paginate_navigation(); ?>
But still nothing

Regards
User avatar
Senior Boarder

GK User
Tue Jun 10, 2014 1:37 pm
Please send me backend and FTP access to your website, then I'll be able to check it exactly.
User avatar
Moderator


cron