Hi
I use this code to show wp post nav.
function.php
function mehran_next_post_title($title) {
return 'Next Poet';
}
function mehran_previous_post_title($title) {
return 'previous Poet';
}
single.php
<?php
add_filter('the_title', 'mehran_previous_post_title');
previous_post_link('« %link', '%title', true);
add_filter('the_title', 'mehran_next_post_title');
next_post_link('%link »', '%title', true);
remove_filter('the_title', 'mehran_previous_post_title');
remove_filter('the_title', 'mehran_next_post_title');
?>
How can i add class to «Next Poet» and «previous Poet» ?