You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -258,8 +258,18 @@ Example:
258
258
259
259
### pagination
260
260
261
-
# TERIS TEKEE
261
+
`pagination` helper prints out a basic pagination for your template. It takes the data from your model as parameters and calculates the number of pages based on the `posts per page` value. It then prints out an `ul` element containing the page links with the corresponding page as a query parameter. The helper accepts the following parameters:
262
262
263
+
-`per_page`: The number of items a single page should have.
264
+
-`items`: The amount of items in your data set. For example this could be the post count.
265
+
-`page_label`: The query parameter for the pagination links. The default is `paged`.
266
+
-`hash`: The hash link to be added at the end of the pagination links.
`permalink` helper emulates WordPress' native `get_permalink()` function. It takes one parameter, `id`, that tells it what post's permalink to give. It defaults to current post's id.
0 commit comments