WordPress.org

Forums

WP-PageNavi
[resolved] Pagination on single.php (4 posts)

  1. Umar Siddique
    Member
    Posted 1 year ago #

    I'm using WP-PageNavi plugin for paging. I created a custom template and then assigned this template to my static page from admin. Within template am querying posts from database based on specific type and list them. Here I'm trying to show paging as well if have more posts then the page size. But paging links are not being shown, can anyone please help me on how I can achieve this ?

    Below is the code part being used to render pagination.

    if(function_exists('wp_paginate'))
    {
         wp_paginate();
    }

    https://wordpress.org/plugins/wp-pagenavi/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    You got the wrong plugin. wp_paginate() doesn't belong to WP-PageNavi

  3. Umar Siddique
    Member
    Posted 1 year ago #

    My bad, got typo there, It's wp_pagenavi instead of wp_paginate

    Thanks for the highlighting.

  4. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    You probably have to pass in the query post variable. Read the sticky post http://wordpress.org/support/topic/navigation-not-working-3?replies=1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic