Posted By

wpCanyon on 11/17/10


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

baires


Adding Classes To previous_posts_link() And next_posts_link() In WordPress


 / Published in: PHP
 

URL: http://wpcanyon.com/tipsandtricks/adding-attributes-to-previous-and-next-post-links/

  1. add_filter('next_posts_link_attributes', 'posts_link_attributes');
  2. add_filter('previous_posts_link_attributes', 'posts_link_attributes');
  3.  
  4. function posts_link_attributes(){
  5. return 'class="styled-button"';
  6. }

Report this snippet  

You need to login to post a comment.