Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

More options for pagination buttons HTML? #950

Closed
k4kfh opened this issue Dec 22, 2015 · 1 comment
Closed

More options for pagination buttons HTML? #950

k4kfh opened this issue Dec 22, 2015 · 1 comment
Labels

Comments

@k4kfh
Copy link

k4kfh commented Dec 22, 2015

I know there are "canned" pagination buttons with posts_next() and posts_prev(), but if I don't want to use that text/styling can I change that? What if I want to have different class attributes on that <a> element?

@ghost
Copy link

ghost commented Dec 22, 2015

OK - just updated the master branch just now. If you update to the latest-master version you can now call like so:

<?php echo posts_prev('Previous page', '', array('class' => 'my-prev-class', 'title' => 'my awesome title')); ?>

Same with posts_next().

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants