Pagination link problem. (2 posts)

  1. netinial
    Posted 5 years ago #


    I have a new query inside the page.

    When I call wp_pagenavi from http://test.com/net/x-page this adress

    it creates me page adresses like http://test.com/net/x-page/page2
    http://test.com/net/x-page/page3 etc..

    I want to change this adress's to http://test.com/c/yc/page2
    http://test.com/c/yc/page3 to prevent dublicate content. to link it (category)

    I found that this adress given by get_pagenum_link( $page ) function from wordpress to the wp_pagenavi.

    And get_pagenum_link function uses remove_query_arg to obtain this adress.

    But this process being before all query.

    So how can I change this adress from net/x-page/page2 to /c/yc/page2

    If I cannot solve the problem I will redirect net/x-page/page2 page to the /c/yc/page2 but this will not solve my problem because I want to show page's content in first page.

    Are there any solution

  2. Emil Uzelac
    Theme Review Admin
    Posted 5 years ago #

    If this is only to prevent duplicate content I wouldn't worry about it, WordPress already handles this part via rel="canonical" tag in your header.php area.

    Also see:


Topic Closed

This topic has been closed to new replies.

About this Topic