I have a bunch of posts in which I provide links to other posts that I have written, what I want to be able to achieve is when I am at a page that has links to it in other pages I want to get all the links to that page and display the titles of the pages that have the links i.e., I want to show all the backlinks.
Example::
Let’s say there are 4 Posts, and
- Post A has a link to Post B
- Post A has a link to Post C
- Post C has a link to Post B
- Post B has a link to Post D
I want to get all the links to Post B, that is, from Post A and Post C when I am at the page containing Post B.
So If Post B looks like this, I want to append the backlinks to it as shown below:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Links to this Post:
1. Post A
2. Post C
Are there commands or plugins that achieve this? Any help is appreciated.