it’s like building a FAQ
<a href="#6"><strong>6. anchor text for #6 anchor</strong></a>
then where you want to jump to, put
<a name="6"><strong>6. anchor text for #6 anchor</strong></a>
the <a href="#6">
and <a name="6">
tags and their corresponding close tags are the important part – the text shown here as “6. anchor text for #6 anchor” can be anything you want
Okay.. I tried this (thank you for the tip!) using #s… like this:
NOTE: I used the { } to avoid creating links here… which apparently I do beautifully HERE.. I just can’t do it on my page.
{a href=”#1″}>Word to be linked {/a}
and
{a name=1}Where the link was going [/a}
but the html is changing after I save it to some non-existent admin page?? It turns in to
<a}Word to be linked </a}
Any ideas what I am doing incorrectly?
Ooops… sorry – the links turns in to this:
[a href=”http://www.website.com/wordpress/wp-admin/1″%5D Word to be linked {/a]
I’m not sure, but try writing the code in the HTML code view of WP Write Post. Not the Visual Editor, if you’re using that.
Thanks… I did write in the html (word wrap enable) view.
Guess I’ll have to approach this a little differently.
Well, just go ahead and put your Post URL (the permalink to your post), and end it with /#1
Example, the same code you wrote above except
<a href="http://yoursite.com/your-post/#1">Word to be linked </a>
On a similar, but not identical, thread, I have a longer post but want to limit the text visible to the first paragraph. In order to reduce the footprint on my popst, I want to put in an anchor to the remainder of the text so an intersted reader can click on it to expand it. My question is this, do I remove the text I want to link to (i.e. beyond the first paragraph) and then place it off-site with an anchor to reference / access it, or can it simply be concealed on the post and revealed via an interested reader clicking on the anchor?
I have seen many examples of what I am after, but don’t know how to structure it on my site.
kate-chan,
Since this was 7 months ago maybe you figured it out or lost interest, but…
I think you are having this problem because the page/post you are working on is still a draft. I had the same problem where it was stripping my html for the <a name ="">
But once I published the page it all worked out fine. What I mean is I published the page and THEN I created the <a name>
anchors.
@dynamic1,
It sounds like what you want is an excerpt with “read more” link.
http://www.tech-evangelist.com/2009/03/08/wordpress-more-quicktag/