Opened 18 years ago
Closed 18 years ago
#3159 closed enhancement (fixed)
Generic page links generating function
Reported by: | mdawaffe | Owned by: | mdawaffe |
---|---|---|---|
Milestone: | 2.1 | Priority: | low |
Severity: | normal | Version: | 2.1 |
Component: | Template | Keywords: | pagination has-patch 2nd-opinion |
Focuses: | Cc: |
Description
This has been talked about an hackers a couple times and on at least one bug hunt.
Attached: paginate_links()
- 'base' => base link with
%_%
to be replaced by: - 'format' => format of replacement with
%#%
to be replaced by page number. - 'total' => total # of pages.
- 'current' => current page.
- 'show_all' => show all links or just the first, last and those near current?
- 'prev_next' => show previous and next links?
- 'prev_text' =>, 'next_text' => text for previous and next links.
- 'end_size' => how many links to show at the beginning of the range.
- 'mid_size' => how many links to show on either side of the current page.
- 'type' => 'array', 'list', 'plain'.
- 'add_args' => array of args to add with add_query_arg()
Modifies WP_User_Search to use this function. See #2793.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
masquerade, thoughts?