/ Published in: PHP

URL: http://wpcanyon.com/tipsandtricks/adding-attributes-to-previous-and-next-post-links/
Expand |
Embed | Plain Text
add_filter('next_posts_link_attributes', 'posts_link_attributes'); add_filter('previous_posts_link_attributes', 'posts_link_attributes'); function posts_link_attributes(){ return 'class="styled-button"'; }
You need to login to post a comment.