I was wondering how I can use a URL anchor within my post. How would I self reference a page?
For example in I had a long article, and at the top I had summary points, and from there the user can "jump to" that anchor. However, when a URL is generated on WP, there is no "actual" page, e.g. http://local.domain/2006/03/26/my-article/, where you can place a usual web anchor: http://local.domain/2006/03/26/my-article/THIS_PAGE.PHP#my_section. I tried putting a label after the usual URL: http://local.domain/2006/03/26/my-article/#my_section, but it did not work at all.
Here's the example code:
-----------------------------------
<a href="http://local.domain/2006/03/26/my-article/THIS_PAGE.PHP#my_section">My Section</a>
text
text
text
...
text
<a name="my_section">My Section</a>
text
text
-----------------------------------
where THIS_PAGE.PHP refers to some page name I hope someone can tell me how to make this works or if there is some other solution, please share.
Much thanks :)