Tag: post navigation

  • Add css classes to WordPress posts links generated by next_post_link and previous_post_link functions

    Add css classes to WordPress posts links generated by next_post_link and previous_post_link functions

    You might have across a situation where you needed to add css class to the html markup generated by WordPress posts links’ functions of next_post_link and previous_post_link. Especially if you working with Bootstrap or Zurb foundation frameworks as these two frameworks require specific css classes for formatting. So have come across similar situation and we…

  • Fixing Broken Posts Navigation

    Fixing Broken Posts Navigation

    According to the WordPress codex the get_previous_post and get_next_post should either return null or empty in single posts navigation when you are at the first or last post. If you come across a situation where these two handy functions do not work as expected then most probably you have installed a plugin which is interfering…