Change Previous / Next Posts


/ Published in: PHP
Save to your folder(s)

Change the text in between the single quotes - i.e.

return 'Older Articles'

to reflect whatever you want the link for older / newer posts or next/previous post to say.


Copy this code and paste it in your HTML
  1. // Change the Previous Posts Link
  2. function change_previous_posts() {
  3. return 'Older Articles';}
  4. add_filter('headway_older_posts_link', 'change_previous_posts');
  5.  
  6. // Change the Next Posts Link
  7. function change_next_posts() {
  8. return 'Newer Articles';}
  9. add_filter('headway_newer_posts_link', 'change_next_posts');
  10.  
  11. // Change the Previous Post Link - Single Post Page
  12. function change_previous_post() {
  13. return 'One step back';}
  14. add_filter('headway_previous_post_link', 'change_previous_post');
  15.  
  16. // Change the Next Post Link - Single Post Page
  17. function change_next_post() {
  18. return 'One step forward';}
  19. add_filter('headway_next_post_link', 'change_next_post');

URL: http://headwaytoolbox.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.