WordPress.org

Support

Support » Plugins and Hacks » Pods - Custom Content Types and Fields » [Resolved] Question about pagination

[Resolved] Question about pagination

  • Hello! Is there a way to echo the number of items in a pagination page relative to the total number of results found?

    e.g. Page 3, showing 31-45 items of 300 found.

    In this case, showing the page number and the total number of results is easy. However, I couldn’t figure out the right code to echo out “31-45” mentioned above.

    I’ve been diligently looking at the codes in the documentation section but couldn’t figure how to make this work.

    http://wordpress.org/plugins/pods/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Another very related question…

    Instead of page numbers in the pagination, is there a way to show the actual number of items in a pagination page relative to the total number of results found?

    e.g.
    << First < Previous 1-10 11-20 21-30 31-37 Next > Last >>

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    No, this is currently not possible with our code, but you could request the feature.

    For now, you can run your $pod->find(), and utilize the $pod->page variable to know what page you’re on, $pod->total() to know how many items are on the current page, and $pod->total_found() to know how many results total were found in the DB (across all pages)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Question about pagination’ is closed to new replies.
Skip to toolbar