The problem I'm having is that my style has a rather large gap between the header and the content, so if you're on a paged article and click a link to another page, you have to scroll down to get back to the article. What I wanted to do is have
<?php link_pages() ?> or
<?php wp_link_pages() ?> link to the next page
#post or whatever.
There seems to be a way to make the tag do what I need, but I'm having difficulty getting my syntax right. I searched the Codex and found this parameter:
(string) Page the links should point to. Defaults to the current page.
Unfortunately I'm just not getting it. Here's what I've got so far:
<?php wp_link_pages('before=<p class="pagination">Pages: &after=</p>&next_or_number=number&more_file=#post'); ?>
I've even tried
<?php ... &more_file=( the_permalink() )#post'); ?>. Any ideas?