After updating both pages, here are the results:

Clicking on the link “Answer For Question #1” on the questions page…

...brings up the “Answer to Question #1” on the answers page:

And, that’s how simple it is!

What do you think? Was this worth your time? I hope I was able to offer you a quick and easy way to jump around your posts.

Merry Christmas and a safe and Happy New Year to all my WA family!

Jim

P.S. Thanks, to Trish (Triblu) for her eagle eye and quick response to point out I had one too many </span>'s in my HTML code. Everything is now updated - with her help! A special HAPPY HOLIDAYS to Trish!



Join the Discussion
Write something…
Recent messages
Ruzzty Premium
Hi Bob
Thanks for your help with internal links and pages.
Russ
Reply
Triblu Premium
Hey Bob,

You don't need the first "</span>" tag you are using.

Think of HTML codes this way... first, you turn ON whatever it is you want to do. Let's say you want to BOLD some text, then you would simply turn ON the bold tag this way:
<strong>

and then turn OFF the bold tag this way:
</strong>

so that your line of code completed, would look like the following:
<strong>[text is placed here]</strong>

Same thing for your SPAN tag. Turn it on once and turn if off once. Anything beyond that is unnecessary and only works to possibly confuse a browser.

Not to worry though, as you can easily edit your tutorial.

Hope this helps you.
Reply
bpais1 Premium
Thanks, Trish. I appreciate you finding that error! I should have known better - given the fact that I've used this process so many times. I have updated the training accordingly.

One thing that baffles me, though...

After I add the <span id= "anchortext"></span>, update the post, go to "visual editor", then back to "text editor" to check the HTML one more time - there is an additional </span> added.

So, it has become <span id= "anchortext"></span></span>. Do you think that may be a quirk in my theme?

Jim
Reply
Triblu Premium
I have found that toggling back and forth between Visual and Text tabs seems to confuse WordPress. It has been like this for years now, so when I work in the Text tab (99.9% of the time), and I want to check something, I use the Preview button on the right, to do that.

This is the problem with WordPress as it is build on soooo many other layers of text. I'm surprised that it even works as well as it does.
Reply
tman61 Premium
That was very interesting. i even checked out your site.
Reply
bpais1 Premium
I struggled with internal linking for ages, Tim - before I finally found the solution that worked perfectly for me.

If you get around to trying it, let me know how it goes.

Jim
Reply
Top