If you are using adjacent post relational links in the head of your wordpress theme add this little bit of jquery. This will let people navigate next, previous adjacent post with the left and right arrow keys.
$(document).keydown(function(e){ if (e.which == 37) { // left arrow if(!prev) return false; window.location.href = $('link[rel=prev]').attr('href'); } if (e.which == 39) { // right arrow if(!next) return false; window.location.href = $('link[rel=next]').attr('href'); } });
Comments Leave a Reply