I searched little and did this which is working.
add_filter('next_posts_link_attributes', 'posts_link_attributes_1');
add_filter('previous_posts_link_attributes', 'posts_link_attributes_2');
function posts_link_attributes_1() {
return 'data-hover="Next" class="your class here"';
}
function posts_link_attributes_2() {
return 'data-hover="Previous" class="your class here"';
}
Related Posts:
- How to display pagination links for WP_User_Query?
- post pagination names, not numbers
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- Display “Page 3 of 5” for a paginated post
- Implementing a general Table of Content across single paginated post pages
- Custom WP_Comment_Query with pagination and orderby?
- Pagination: How do I always show ‘previous’?
- Change class=”page-numbers” in pagination
- Varying the number of posts per page from the first one
- Using pagination with get_posts on page type
- Limit number of pages in pagination
- Static front page with recent posts pagination
- Paginate tags page
- How to display next and prev pagination links with WP_User_Query?
- Custom taxonomy list and sortby letter pagination problem
- Custom Page Template for “Older Posts” Pages
- wp_link_page – wrap current page element
- How to create pagination on archive.php template
- How to change title tags on paginated posts?
- paginate_links() outputs extra empty pages on custom loop
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- When to check for max_num_pages using WordPress REST API?
- Adding pagination to a custom archive template
- How to make my pagination loop continuously?
- add spans and characters into paginate_links
- wordpress Next/Previous post in same category not working
- Paginate Child Pages Content on Parent Page
- Pagination is somewhat working on frontpage, doesn’t update when “prev” is clicked
- WordPress Pagination not working, any ideas?
- remove paginations functions only on home
- How to add a zero before numbers in WordPress Post Pagination?
- next_posts_link does not work when querying a specific category
- Tabbed content with Pagination
- 404 on pagination but with a strange twist (error 404 only when there is single post on the second page)
- Next and Previous buttons for navigation
- Offset a post in the loop, with using PageNavi Plug-in
- Last page in pagination does not match max_num_pages – the overall post count is less according to pagination
- wp_title() returns ‘page not found’ on page 2
- Homepage has Paged Pages that should not exist, like /page/2/ and on to /page/99999/
- rewrite url with parameter or pagination beyond certain value does not work
- Update to 4.4.1 breaks my pagination
- Frontend sorting
- Limiting number of visible links displayed with wp_link_pages
- Pagination not working in custom page, only working in post page
- Only show Previous & Next button in Pagination
- Pagination isn’t created when there is only one page of posts
- Different layout on second page
- Pagination Not Working When Modifying Loop Based on Post Category
- custom posts archive pagination links /page/2/ ends up in 404
- Pagination doesnt show numbers
- WP Query for all posts
- where is wordpress search pagination
- Pagination for Custom WP_Query not displaying page 2 results
- pagination error in taxonomy: Warning: Division by zero
- Pagination Links Not Showing Up on single.php posts on iOS Devices
- next_posts_link(); & previous_posts_link(); not working properly
- Ending Pagination loop in PHP
- Paginate the_content automatically? [duplicate]
- pagination links not displaying
- remove rel=next on category page (if
- Page navi for template page
- WordPress paginate_links function: How do i ensure the page number is not less than 1 and not greater than last
- Pagination on page 2+ only
- How to replace pagination with Next/Previous for multi page posts?
- How to Add Pagination to Page?
- Disable and redirect pagination of Home
- Can’t Add Pagination
- How to hide empty pagination button when no previous page
- how to Adding pagination on template page wordpress
- Pagination not working on homepage, On other pages it is working
- next and previous category name and link parent only wordpress in archive page
- Custom pagination search in post type with meta key
- WP_User_Query counter not updating with pagination
- Remove Number Of Pagination [closed]
- I would like help getting my pagination to work
- Display Both next previous and number in single page [duplicate]
- How to add pagination to custom page
- Pagination: Last Page Missing
- posts_per_page stop working after wordpress update from 4.2.1 to 4.6.1
- Why Am I getting an error when I add the number parameter to my WP_User_Query?
- Need help on wordpress pagination script
- Update Gallery Randomly in every hour with no duplicates?
- Custom page pagination based on Kriesi pagination
- Test for if you’re on 1st page of paginated post (with nextpage quicktag)
- Pagination not working in custom post page
- Pagination issue [duplicate]
- Pagination link problem when reaching the second page
- pagination broken because wordpress is adding index.html
- the paged param is allways 0
- Add next and previous post links on pages like category, tags or archive pages
- Stop loading more posts if none left AJAX
- Reverse ordered pagination on home page
- Intercepting $_GET variable from custom pagination
- another post a page problem
- Default pagination in Home/Front page
- Making a Killer wp_link_pages
- pagination: Only one result is shown even if there are more than one?
- pagination leads to 404 page
- Show pagination in WP_Query
- How to automatically load more data when users reaches at the bottom of the page of the wordpress site?