• Resolved ensnare

    (@ensnare)


    I have a custom page template that outputs news, events and members content, when I put simple pagination into the mix it knows how many pages there should be, however the links do not work. For example the news page is at “who-we-are/news” when clicking on the 2nd page pagination you’re taken to “who-we-are/news/page/2” but this is exactly the same as the previous page.

    Any ideas? here’s my code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    https://www.ads-software.com/extend/plugins/simple-pagination/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ensnare

    (@ensnare)

    Moderator removed code so here it is on pastebin: https://pastebin.com/0VFgMzH0

    Thread Starter ensnare

    (@ensnare)

    Just had to change my query around a bit to:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
        if ( is_page( "News" ) ) { // if news only show news
          query_posts('category_name=News&posts_per_page=10&order=DSC&orderby=ID&paged=' . $paged);
        }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simple Pagination] Pagination on custom listing pages’ is closed to new replies.