Return to Snippet

Revision: 36064
at November 17, 2010 14:26 by wpCanyon


Initial Code
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"';
}

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

Initial Description

                                

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

Initial Tags
wordpress

Initial Language
PHP