Tuesday, April 28, 2020

What Are Permalinks in WordPress How to Set Them and Why

TL;DR: Permalinks in WordPress = permanent links. Those are the permanent URLs of the  blog posts and pages on your WordPress site. For example, the permalink of this very blog post that youre reading right now is: https://themeisle.com/blog/permalinks-in-wordpress/Permalinks are also among the key parameters of any WordPress blog, and something that you should set right away after  you launch your shiny new website.Heres why:Why permalinks in WordPress are importantBasically, its through permalinks that the world identifies the individual pieces of content on your WordPress blog as grand as it might sound.For instance:If another blogger wants to link to your content, they point to one of your permalinks.If you want to share your content on social media, you share the permalink.If Google wants to index a piece of your content, they use the permalink.If you want to show your content to a friend, by mentioning it in an email for example, then you give them the permalink.I might be missing some important uses, but you get the gist.The problem with permalinks in WordPressThe main problem with permalinks in WordPress, as great as they are, is that the default permalink setting the one that WordPress comes preinstalled with isnt optimized at all.If you go to your wp-admin / Settings / Permalinks right after installing WordPress, youll see this:The default permalink structure therefore is:http://www.YOURSITE.com/?p=123where 123 is the ID of a given post or page in the database.Why is this bad?The chief reason is that a structure like that gives you no possibility to optimize the permalink for neither human beings nor Google (not good for your SEO).Heres why:Say you publish a piece of content on, Why Jamon Iberico Is the Greatest Ham in the World. If your permalink is:http://www.YOURSITE.com/why-jamon-iberico-is-the-greatest-ham then youre basically giving everyone a hint as to what this piece of content is about. This goes for both Google and human beings. Eve ry person, algorithm, and bot can decode that information.http://www.YOURSITE.com/?p=27 then no one knows anything. As simple as that.How to set permalinks in WordPressOkay, luckily, this is very simple. But the task  is two-fold:You need to set the permalink structure right after you launch a new WordPress site.You should set the permalinks for every piece  of content individually.In that scenario, #1 will give your site the right structure to work with for the future. And with #2 you can fine-tune the individual permalinks of all your posts and pages.Lets explain both of those quickly:1. How to set the permalink structure in WordPressTo set your permalink structure, go to your wp-admin / Settings / Permalinks. Once there, select this option:Just to make sure were on the same page, its the one labeled Post name.Now, why this one?Quite simply, it holds the least amount of unneeded clutter There are no seemingly random numbers, no dates, no arbitrary words (like archives). There s just the post name that you can control 100% (more on that in the next point).Note. Why you dont want dates in your permalinks?  The main reason is  because  dates discourage your visitors from reading  your older content. Any date thats older than  last week (or so) looks like out-of-date information, despite the fact that it might still be very valid, or might even be evergreen.After you select that new permalink structure (Post name), just click Save Changes at the bottom of the settings page:2. How to set the  individual permalinks for posts/pagesOnce you have the overall permalink structure set, you can proceed to tweaking your individual posts and pages.This can be done through each individual posts or pages editing screen.  When youre editing content, youll see this little area directly below the title field:You can click on the Edit button and adjust that permalink.  A box will appear, and you can put pretty much whatever you wish there:The standard, though , is to either use the given posts whole title or some simplified version of it. For example, this posts title is, What Are Permalinks in WordPress? How to Set Them and Why, but the permalink part is just, permalinks-in-wordpress, just like you can see above.Note. Try not to update the permalink structure once you publish your post or page. One of the main ideas behind permalinks is that they are permanent, hence the name. Changing those links later on makes finding your content more difficult for people as well as search engines.Thats pretty much all there is to permalinks in WordPress. The good thing is that point #1 you have to do only once after first launching your site. And from there, WordPress is quite good at proposing optimized permalinks for your posts and pages on its own, so #2 becomes easy too. When working on new content, you just need to have a look if WordPress version of the permalink makes sense, and then tweak it slightly in case of any issues.Setting the right p ermalink structure is one of 10  things that you should do after launching any WordPress site. We talked about the other 9  in one of our  previous posts. Check it out here.Free guide5 Essential Tips to Speed Up Your WordPress SiteReduce your loading time by even 50-80% just by following simple tips.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.