Create pagination in the items list of specified custom taxonomy term (2 posts)

  1. ndrwld
    Posted 5 years ago #

    I've created list of custom taxonomy term and have problem with pagination.

    Custom post type "gallery" has his own custom taxonomy "gallery_category". The next loop lists all items of chosen Gallery category:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    I'm using WP PageNavi plugin to create pagination and I'm facing the problem with "get_queried_object()" function.

    It takes term name from the link: http://domain.ltd/gallery/categories/term-slug.

    When I click on next page, link changes to: ../gallery/categories/term-slug/page/2. Because link slug has been changed I'm getting an error.

    Maybe you have any ideas how could i solve this problem? Thanks.


  2. ndrwld
    Posted 5 years ago #

    Here is code posted in pastebin http://pastebin.com/0Z3q1fxZ

Topic Closed

This topic has been closed to new replies.

About this Topic