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?
I gave up and modified the core file. :o\ But thanks, though. I’ll just have to remember that at the next update. Besides, it’s only necessary because of my theme. Who’s to say I won’t be using it when update time comes around? Thanks again, Kafkaesqui. You’re always very helpful.
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Making link_pages reference an anchor’ is closed to new replies.