How Do I Direct Link to a Specific Part of a Page in WordPress?

In WordPress, you can direct link to specific parts of a page by using the link shortcode [link]. For example, you could write:

[link href=”http://mywebsite.com/wp-content/themes/mytheme/images/logo.png” Target=”_blank”]My Website Logo[/link]

If you want to direct link to a post, you would use the following:

[link href=”http://mywebsite.com/wp-content/themes/mytheme/posts/my-post.html” Target=”_blank”]My Post[/link]

If you want to direct link to a specific post within a post, you would use the following:

[link href=”http://mywebsite.com/wp-content/themes/mytheme/posts/my-post-ID.html” Target=”_blank”]My Post ID[/link]

If you want to direct link to a specific page within a post, you would use the following:

[link href=”http://mywebsite.com/wp-content/themes/mytheme/pages/my-page.html” Target=”_blank”]My Page[/link].