[wp-trac] [WordPress Trac] #3159: Generic page links generating
function
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 22 18:02:44 GMT 2006
#3159: Generic page links generating function
-------------------------+--------------------------------------------------
Reporter: mdawaffe | Owner: mdawaffe
Type: enhancement | Status: new
Priority: low | Milestone: 2.1
Component: Template | Version: 2.1
Severity: normal | Keywords: pagination
-------------------------+--------------------------------------------------
This has been talked about an hackers a couple times and on at least one
bug hunt.
Attached: paginate_links()
1. 'base' => base link with {{{%_%}}} to be replaced by:
1. 'format' => format of replacement with {{{%#%}}} to be replaced by
page number.
1. 'total' => total # of pages.
1. 'current' => current page.
1. 'show_all' => show all links or just the first, last and those near
current?
1. 'prev_next' => show previous and next links?
1. 'prev_text' =>, 'next_text' => text for previous and next links.
1. 'end_size' => how many links to show at the beginning of the range.
1. 'mid_size' => how many links to show on either side of the current
page.
1. 'type' => 'array', 'list', 'plain'.
1. 'add_args' => array of args to add with add_query_arg()
Modifies WP_User_Search to use this function. See #2793.
--
Ticket URL: <http://trac.wordpress.org/ticket/3159>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list