[wp-trac] [WordPress Trac] #23260: Enhancement for paginate_links(); to include in wordpress core
WordPress Trac
noreply at wordpress.org
Tue Jan 22 04:28:44 UTC 2013
#23260: Enhancement for paginate_links(); to include in wordpress core
-------------------------+------------------------------
Reporter: Danielx64 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.5
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> Hello all,
>
> I asked a question over at theme-reviewers [1] and one of the answers
> (and a helpful one) was that any improvement/s that I find could be
> push back into the core.
>
> The first thing that I would like to see is a "Page x of x" and make
> it a link to that people can click on it and enter the page munber
> that they want to go to then they can go stright to that page.
>
> Now I did find some code to do it but for some reasons I don't feel
> that it the right way of doing it[2].
>
> The next thing that I'm looking at is if we can have it so that we can
> set our own style class or even replace tags altogether. Right now the
> only way that I can do this (as far as I know) is by editing core code
> or copy and paste code from care into my function.php file and rename
> things.
>
> I see that with the sidebar callback, I can set before and after tags
> for title and other things and that to the theme author gives us alot
> of control over layout and how we can style things.
>
> The reasons why the above improvements should be included in core:
>
> A: No need to create custom functions
> B: Don't need to install extra plugin just to get the "Page x of x"
> function or to create a hacked paginate_links function.
> C: It gives theme developers more control over style without alot of
> extra coding and if they don't want something they can disable it
> (example "Page x of x")
> D: It means that if wordpress devs change the paginate_links function
> theme authors don't need to update their custom functions [see A]
>
> Regards,
> Daniel Fenn
>
> [1] http://lists.wordpress.org/pipermail/theme-
> reviewers/2013-January/011488.html
> [2] http://design.sparklette.net/teaches/how-to-add-wordpress-pagination-
> without-a-plugin/
New description:
Hello all,
I asked a question over at theme-reviewers [1] and one of the answers
(and a helpful one) was that any improvement/s that I find could be
push back into the core.
The first thing that I would like to see is a "Page x of x" and make
it a link to that people can click on it and enter the page munber
that they want to go to then they can go stright to that page.
Now I did find some code to do it but for some reasons I don't feel
that it the right way of doing it[2].
The next thing that I'm looking at is if we can have it so that we can
set our own style class or even replace tags altogether. Right now the
only way that I can do this (as far as I know) is by editing core code
or copy and paste code from care into my function.php file and rename
things.
I see that with the sidebar callback, I can set before and after tags
for title and other things and that to the theme author gives us alot
of control over layout and how we can style things.
The reasons why the above improvements should be included in core:
A: No need to create custom functions [[BR]]
B: Don't need to install extra plugin just to get the "Page x of x"
function or to create a hacked paginate_links function. [[BR]]
C: It gives theme developers more control over style without alot of
extra coding and if they don't want something they can disable it
(example "Page x of x") [[BR]]
D: It means that if wordpress devs change the paginate_links function
theme authors don't need to update their custom functions [see A]
Regards,
Daniel Fenn
[1] http://lists.wordpress.org/pipermail/theme-
reviewers/2013-January/011488.html [[BR]]
[2] http://design.sparklette.net/teaches/how-to-add-wordpress-pagination-
without-a-plugin/
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23260#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list