Home / links / Next and previous post images
  • How to Next and previous post images

    no thumbnail sorry: Next and previous post images

    Adding this PHP code to your wordpress theme will display image links for your next and previous posts. Upload images to your theme with the name next.png and prev.png.

    ( click code to copy )

    wordpress snippet : PHP

               next_post_link( '%link', '<img src="' . get_bloginfo('stylesheet_directory') . '/img/prev.png" />');
               previous_post_link('%link', '<img src="' . get_bloginfo('stylesheet_directory') . '/img/next.png" />' );

    ( WordPress codex functions, hooks, in this snippet. )

    stylesheet, post_link, bloginfo, stylesheet_directory, get_bloginfo,