What is a link relationship (XFN) in WordPress?
Link relationship (XFN) stands for XHTML Friends Network. Global Multimedia Protocols Group made and maintains the XFN standards. XFN uses hyperlinks to represent real-world human relationships. In other words, you can think of XFN as distributed social networking. Unlike traditional social networks, there is no central server where everything is stored. It’s up to the creator of the website to put XFN relationships information into hyperlinks. If the creator of the website did embed XFN information, then people and search engines can read that information and make more meaningful relationships between websites and people. Including XFN links on your website might help with SEO.
Getting started with link relationship (XFN)
For example, let’s say that you have a friend named John. John has a blog where he talks about smartphones. Also, you have a blog or website and you want to link to John’s blog. In short, you would do this by adding this line of code to your site:
<a href="http://john-blogs.com/">John's blog</a>
then people that view your site can also go to John’s blog. You can take one extra step and add a relationship to the hyperlink. To do this add to hyperlink code rel=”friend”. The code should look like this:
<a href="http://john-blogs.com/" rel="friend">John's blog</a>
You can use more than one relationship value in the link. If you are using more then one value they should be separated by spaces. For example, let’s say that you also met John in real life. In this case, you can add a ‘met’ to your link. The link should look like this:
<a href="http://john-blogs.com/" rel="friend met">John's blog</a>
This way people and search engines know that John is your friend and that you met him in real life.
List of XFN values that you can use
There are more relationships that you can use besides a friend and met. For this reason, we present you with a full list of XFN link relationships value that you can use.
There are three values that you can pick from. You can only use one. The values are:
- contact – Someone that you met and can get in contact with.
- acquaintance – Someone that you met a few times but you are not close enough with that person to call them a friend.
- friend – Someone you consider to be your friend.
- co-worker – Someone that you work within the same company or organization.
- colleague – Someone that works in the same field as you.
Family – link relationship (XFN)
When using values from this category, you can only pick one value.
- child – Your child does not matter if you are a biological parent or not.
- parent – One of your parents. It does not matter if you were adopted.
- sibling – Someone that you share a parent with.
- spouse – Someone that you are married to.
- kin – Person that is considered part of the family.
Same as in family you can only pick one link relationship (XFN) value from this list.
- muse – Someone that brings you inspiration. This is not strictly romantic inspiration can be a professional inspiration.
- crush – You are attracted to this person. But you did not express your filings to that person.
- date – Person that you are dating now.
- sweetheart – You are intimate with this person and committed to some extent.
- co-resident – Someone that you share the street address with.
- neighbor – This person lives close to you. Maybe a few doors from you or a few streets away.
- met – You physically met with this person.
- me – In case, you are linking to your website you should add this value to hyperlink. When using ‘me’ value you should not include any other values.
Link Relationship (XFN) – Conclusion
In this article, we showed how to use XFN and provided a full list of values that you can use. Therefore you can start using XFN today to represent your relationships and possible boost your SEO.