next_post_link(); with anchor
-
Hi, I need to let the user jump directly to an exact point navigating from post1 to post2, etc.
Normally, I use:<div class="navigation_previous"><?php next_post_link( '%link', __( '«', 'twentyeleven' ) ); ?></div> <div class="navigation_next"><?php previous_post_link( '%link', __( '»', 'twentyeleven' ) ); ?></div>
but this give in out put sth like https://DOMAIN/?p=POSTID
What I really need id https://DOMAIN/?p=POSTID#anchor to let the user open the post directly at the correct level of the page.Thanks to everyone can help me! Greetings!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘next_post_link(); with anchor’ is closed to new replies.