kerchmcc
Member
Posted 3 years ago #
I want to use anchors to cross link between two posts.
For example, there is a post containing a list of speakers' bios.
I want to link each to their specific talk on the post of list of topics.
However: when I use the regular anchor links so:
<a href="post#anchor">text</a>
WP jumps to the right page but changes the URL to this:
/post/#anchor
Is there any way to make the post#anchor go to the right page in the linked to page?
Thanks for the help.
kerch
carebbean
Member
Posted 3 years ago #
kerchmmc
Have you received a resolve to this quiery?
I am trying to do the same thing:
I have many posts which are authored by different writers. I also have created a page listing all of those author's bios alphabetically. I want to have a link from the author's name on the post go directly to that authors bio on the author page.
I saw your original post to a forum asking for help about that:
in front of the author's name on the post page closed with . Then on the author page in front of the author's name (a name="#X"> closed with
Is that correct? Does the # sign need to proceed the number I select?
Thanks so much
Blessings
kerchmcc
Member
Posted 3 years ago #
Yea, carebbean,
I didn't have any luck making it work directly. The anchors work fine inside the post.. but not from post to post.
Ultimately, I put a table of contents at the top of the bio page with links to the anchors on that page. It's not as clean as I would have liked, but it works.
Here's a sample.
Hi,
I am going to resurrect this thread since I would like to see a resolution. Seems like it would be pretty easy to link to an anchor from another post but I can't get it to work. Does anyone have any more suggestions? Thanks for your time.