Seems extremely simple but it doesn't work. Here is my code:
<a href="<?php next_post_link(); ?>"> <button class="btn btn-default pull-right"> <span class="glyphicon glyphicon-arrow-right"></span> </button></a>
So instead of giving me the next page link, the button has 0 link, I actually have a text next to it with title of the next page and a weird link "localhost:8888/site/next-article-title/a href=" The link is good exceped the "a href" at the end which is weird, but anyway the link is not on the button.
Now if I replace my first line href with a simple http://facebook.com, the link will work and will be on the button as I wish. I must be doing something wrong with the integration of the php link.
Any idea ?