How to add a link to a specific paragraph in another post using the Classic Editor in WordPress
You can add a link to a specific paragraph in another post using the Classic Editor in WordPress. Here’s how:
A. Edit the Target Post (the post you want to link to)
- Open the target post in the Classic Editor.
- Switch to the Text (HTML) tab to work with HTML directly.
- Find the paragraph where you want the link to jump to, and add an HTML anchor tag before it. For example:
<a id=”target-paragraph”></a>
- Place this code just above the target paragraph.
- Make sure target-paragraph is a unique identifier (you can use any text here, but keep it simple and descriptive, without spaces).
After adding it, the HTML for that section should look something like this:
<a id=”target-paragraph”></a> <p>This is the paragraph you want to link to.</p>
This is the target paragraph you want to link to.
- Update or save the post.
B. Get the Link to the Paragraph
To link directly to this paragraph, use the post URL followed by # and the anchor ID you set.
For example, if the post URL is:
https://example.com/target-post
And the anchor is target-paragraph, the full link will be:
https://example.com/target-post#target-paragraph
C. Add the Link in the Starting Post
- Go to the post where you want to insert the link (the starting post).
- In the Classic Editor, highlight the text you want to make clickable.
- Click the Insert/edit link button in the toolbar.
- Paste the full URL with the anchor (e.g., https://example.com/target-post#target-paragraph) and click Add Link.
- Save or update the post.
Now, when users click this link, they’ll be directed to the specific paragraph in the other post.
Example of link to a specific paragraph
=>1st post: Τι είναι η Διοίκηση Επιχειρήσεων;
=>Link to paragraph of 2nd post: Επιστημονική Διοίκηση του Frederick Taylor
Comments are closed.