What is a WordPress Slug?

What is a WordPress Slug?

Reference Link: https://www.hostinger.com/tutorials/what-is-a-wordpress-slug/

Author: Domantas G.

Ever wondered what is a WordPress slug? In this article, you’ll learn the definition of a WordPress slug and how to set it in WordPress. We will also provide some tips for setting up user-friendly and SEO optimized slugs. Let’s get started.

What is a WordPress Slug?

A WordPress slug is a text which comes after your domain name as a part of your permalink that is leading to your content.

WordPress Slug comes after domain name

If you add a new post, WordPress automatically generates the slug based on your permalinks settings. You can go to Settings -> Permalinks and change how slugs are generated.

Although WordPress automatically sets the slug, it is not always recommended to leave it like that. The default slug may not be friendly for both search engines and humans.

How to set slugs in WordPress

Before setting your slug, you have to know the two basic rules:

  • Change spaces with dashes;
  • Only lowercase letters are allowed.

WordPress will automatically correct these rules for you. But, it will be better if you understand this before proceeding further.

WordPress Post Slug

You can set your post’s slug while writing or editing your post. Go below your post Title box, and find a Permalink URL. If you can’t find a permalink there, you need to enter your title first. After the permalink appears, you can edit your slug by clicking the Edit button. When you’re finished, click OK.

Set WordPress Post Slug

WordPress Page Slug

Similarly to a post slug, setting up page slug is fairly easy. The permalink URL of the page is also located below the page’s name box. Click Edit, type your page slug, and click OK.

Set WordPress Page Slug

Category and Tag Slug

WordPress automatically gives a slug for a new category or tag that you made. Yet, if you prefer to set your own slug manually, you need to create a category first and go back later.

For setting category slugs, you go to Posts and choose Categories. Find the category you’d like to edit and click the Edit button. Input your slug into the slug box and click Update to save the change.

Changing tag slugs is similar. Go to Posts and choose Tags. Find the tags you want to edit and click the Edit button. After you input your tag slug, make click Update to save the change.

Author Slug

If you have a news website or a website with many contributors, you can also create a slug for each author. Unfortunately, by default WordPress does not allow editing author slug. Therefore, you will need Edit Author Slug plugin. Once plugin is activated go to Users -> All Users. Pick the user and click Edit User, scroll down till Edit Author Slug options. Type in the desired slug and hit the Update User button to save the change.

Edit Author Slug

Tips for Setting WordPress Slugs

Target your SEO keywords

Many SEOs believe you can get better results in search engines if you include keywords you want to rank for in your URLs. Therefore, it is better if you have the keyword in your slug. You can even use your target keyword as your slug.

Keep it simple yet descriptive

Short slugs are more likely to rank in Google and are more user-friendly. Thus, it is better to make your slugs short and on point to your targeted keywords.

No stop words

We recommend cutting out the unnecessary words from your slugs, including stop words such as “a,” “the,” “and,” and other similar words. If you use the Yoast SEO plugin, you will be assisted in cutting out these words from your permalink.

Use Redirects

When you change WordPress slug, the whole URL changes. This means that users and search engines will not be able to find the content using old URL. If it happens that you need to change already existing slug, we recommend setting up 301 redirect from old to new slug.  You can easily do this with SEO Yoast or Redirection plugins.

Conclusion

So now you know that WordPress slug is a text that comes after your domain and is a part of your permalink. Optimizing and setting up the slug in every post, page, category, and tag can result in a more friendly website for both humans and search engines. We hope this article helped you to implement the best slug practices.

How to reinstall wordpress (The Correct Way)

How to reinstall wordpress (The Correct Way)

Reference Link: https://www.hostinger.com/tutorials/how-to-reinstall-wordpress

Author : Artūras B.

There might be several reasons on why you stumbled upon this article. Maybe you’re having issues with your WordPress website like errors you don’t know how to fix, or worse, maybe your site got hacked. Or, you just want a fresh start for your site. Whichever the reason, we got your back! Continue reading to find out how to reinstall WordPress.

There are two major ways to uninstall and reinstall WordPress. You can either reinstall WordPress while keeping all of your existing content or deleting all of your files and install a fresh new copy. We shall be looking at both ways of doing this, and then looking at all the different methods of doing so.

Now, whatever you decide to do, we highly recommend doing a backup of your WordPress files before attempting anything. You can do this by simply copying all of your WordPress files into your computer or a cloud drive. As you never know when something might go wrong, having a failsafe just in case is simply the best practice.

Reinstalling WordPress via Administrative Dashboard

This method both reinstalls and keeps all of your content and is probably the most straightforward. This is done using your WordPress dashboard. If you can’t access the dashboard, don’t fret! You will be able to do this manually using the FTP method which we will cover later on in the article.

In any case, using the dashboard is a real breeze. All you need to do is look at the sidebar, then click on Dashboard -> Updates and tap the Re-install Now button.

WordPress reinstall instructions

The process is fully automatic, all you need to do is wait several seconds and you’re all set.

Reinstalling WordPress using FTP

If pesky errors or whatever else is keeping you from accessing your dashboard, you can use the FTP method (or maybe you just simply prefer it). It’s a very similar method to the one mentioned above, the only difference is that using FTP, you will be doing the process manually instead of using a one-click installer.

Here’s a list of the steps to reinstall WordPress:

  1. Download a fresh copy of WordPress.
  2. Extract the ZIP file
  3. Upload all the files except the /wp-content/ folder

Now, let’s figure out how to actually do each step individually.

Start off by going to WordPress.org and downloading the latest version.

WordPress download pageOnce the download finishes, extract the contents of the ZIP file on your computer and deletethe wp-content folder. This step is crucial as otherwise, your content may be overwritten.

WordPress content folder deletion process

When that’s finished, you’ll need to connect to your account with FTP client and upload your files to where WordPress is installed. By default, it’s going to be your root folder named public or public_html. Whilst doing so a prompt will appear that states that the target file already exists. You will need to overwrite the existing files at that point.

WordPress overwrite existing files via FTP

What this does exactly is it replaces the core files for WordPress, making it a fresh new copy. And since you deleted the wp-content folder, your content files like themes and plugins won’t be altered.

Reinstalling WordPress using WP-CLI

WordPress can also be reinstalled using WP-CLI. It is a command line tool that is used to customize the installation of your WordPress. It’s capable of adding/removing users, categories, posts, inserting test data as well as replacing or just simply searching in the database. WP-CLI has more features, but we won’t be covering them here. And just below is a command line which you can freely use to reinstall WordPress without affecting themes and plugins. By the way, WP-CLI is fully installed and supported on all Hostinger WordPress hosting plans.

wp core download --skip-content --force

How to completely reinstall WordPress (delete all files)

Before saying any more, please bear in mind the following: using this method, all of your content files will be permanently deleted. Be absolutely sure there’s no content worth saving, as once this is done, you won’t be able to undo it.

You might want to this if you encountered WordPress errors you can’t fix for example. Maybe you just want a clean slate and start everything anew.

With that being out of the way there’s really only two steps involved in the process. First, delete all of your existing WordPress files. Secondly, install a fresh new copy using whichever method you prefer. It’s really that simple. To delete the files use a file manager or connect via FTP and delete the files that way.

WordPress delete all content via ftp for a fresh start

Deleting your existing WordPress database is not necessary, even you plan using a new one. However, if you want to completely start over, we don’t blame you! On Hostinger, you can delete the database by navigating to the MySQL Databases section.

Wordpress how to delete mysql databaseLikewise, you can use phpMyAdmin to Drop the database which also wipes out your database completely.

After that’s done, there will be nothing left. Now you can go ahead and start by installing a fresh WordPress copy as if it were a brand new website. Like with reinstalling WordPress itself, there are a few ways of doing this, either automatically or manually depending on your host. If you’re with a host like Hostinger, there’s a prepared 1-click auto installer that installs WordPress in a matter of seconds. Alternatively, you can do this manually which would set you back about 5 minutes. We have covered all ways you can install WordPress here. Congratulations, at this point you have an absolutely blank canvas for your website!

Conclusion

Taking all things into account, reinstalling WordPress is a pretty simple process. For a quick recap, here’s how:

  • By using the in-built WordPress dashboard’s Re-install now button.
  • By downloading and then uploading the WordPress files, while excluding the wp-content folder into your server.

And if you’re aiming for the clean slate approach, you just need to delete all the WordPress files and (or) the database. Then simply install a new copy with a method of your choosing.

We hope you enjoyed our guide and if you have any questions, please feel free to leave a comment down below.

Did you know? Online sales must be registered for commerce.

Did you know? Online sales must be registered for commerce.

Did you know ? Online sales must be registered for commerce.

 

ขายของออนไลน์ เป็นงานอดิเรกเพื่อหารายได้เสริม จำเป็นต้องจดทะเบียนพาณิชย์อิเล็กทรอนิกส์หรือไม่ ที่นี่มีคำตอบ

8 Great Resources to Learn WordPress for Beginners

8 Great Resources to Learn WordPress for Beginners

Reference Link: https://www.hostinger.com/tutorials/learn-wordpress

Author: Dina F.

WordPress is the most powerful Content Management System to date. People love WordPress because it is so easy to use. However, as you dive deeper, you will find out that there are quite a few things to learn about WordPress. Moreover, learning WordPress means you can build a different kind of websites. With WordPress, you can start an e-commerce, news portal, online portfolio, discussion forum, and other awesome things. There are tonnes of resources on the Internet but not all of them are credible. That’s why we have created a list of the best resources to learn WordPress.

WordPress Things to Learn

Since there are a lot of things that you can learn, you have start somewhere. Therefore, we’re giving you a list of some topics that you might find handy when you’re first learning WordPress.

1. What is WordPress and How to Install WordPress

WordPress is a CMS that empowers more than 75 million websites around the web. And as such, there are a lot of things you need to know about WordPress like starting from the basics like installing WordPress to picking your plugins and themes. You also need to know why you need a domain and a hosting service to install WordPress. Some hosting providers may provide a 1-click installer. However, some providers will require you to install WordPress manually.

2. WordPress basic glossary: post, page, categories, admin dashboard, visual editor, etc

As a beginner, it’s a good thing to know some terminologies related to WordPress, such as the admin dashboard, visual editor, themes, plugins, etc. You will find these words in almost every tutorial article about WordPress. So, knowing them is pretty mandatory.

3. WordPress plugins

Whenever mentioning WordPress, plugins always come to mind. Plugins help you to elevate your website appearance and functionality with little to no effort. There are more than 45 thousand free and paid plugins in the WordPress repository. Moreover, there are thousands of third-party makers that create premium plugins for your website. Thus, you should know which plugins best support your needs and how to install them in your WordPress site.

4. WordPress themes

A site’s theme is the face of your website. Just like plugins, there are thousands of themes you can find in the WordPress repository. You also have an option to buy premium themes from third parties as well. Each theme has its own uniqueness and features. Website with different purposes will need different themes. Therefore, be careful to pick and use a WordPress theme for your website.

5. How to customize WordPress

Every website is unique, so is the customization. Although plugins and themes can have an impact from the getgo, their default settings may not meet your needs. Therefore, you will need to do further customization to your website.

Recommended Resources to Learn WordPress

We have collected a list of topics about WordPress resources we think you should know about. Now, let’s jump to the list of the best resources to learn WordPress.

1. WordPress.org Codex (Free)

WordPress.org Codex is just like the WordPress online manual book. Hosted by WordPress.org, it is a trustworthy resource to learn about WordPress for free. This place offers extensive documentation on all issues related to WordPress. Therefore, it is suitable for any web, plugin, or theme developer that wants to learn about all the technical things behind WordPress.

The best thing is WordPress.org Codex is also a wiki. It means that you can take part in editing, translating, contributing, and also discussing every piece of information in its repository. If your concern is just learning WordPress on a surface level, you can skip WordPress.org without fear of missing out.

2. WordPress TV (Free)

Like the WordPress.org Codex, WordPress TV is owned by WordPress.org. It is free and there’s no need to sign up. Just like the name suggests, WordPress TV uses videos to share knowledge with their visitors. The videos are easily digestible for beginners and cover a wide range of topics like WordPress tutorials or recent news related to web development.

Moreover, the videos are also made by WordPress users. As long as you follow the terms and conditions, you can also submit your videos there and join the community of WordPress users around the web.

3. Lynda.com (Paid)

Generally, Lynda.com offers online courses on broad topics such as business, design, photography, software development, and much more. WordPress coaching, of course, is one of them.

If you use to learn WordPress from Lynda.com, you will get one month for free. After that, you need to pay $29.99 a month. Choosing the annual plan gives a discount. Although it’s not free, the Lynda.com subscription is worth every penny. You can watch the tutorial videos repeatedly, practice with quizzes and earn certificates for course completion. The subjects are also classified for beginners, intermediate, or advanced level users respectively.

4. Hostinger.com WordPress Tutorials

Hostinger, while primarily being a website hosting solution also has an extensive WordPress knowledge base. Tutorials, as it’s named is a great resource to get started on all things that are web-related. There you can find countless articles that will help you to achieve your online stardom. It’s a completely free and beginner friendly site. It has an extended section to accommodate all things about WordPress. It’s a perfect place to get going once you have chosen your hosting platform as Hostinger.com Tutorials accommodates this extremely well.

Don’t let the name Tutorials mislead you. The articles are not limited to “How-to” content. It also provides various topics such as plugin and themes recommendations or technical related matters. Moreover, Hostinger.com Tutorials also provide a beneficial knowledge base for other CMS such as Joomla! And Drupal. You can find all WordPress tutorials here.

5. Smashing Magazine (Free)

Smashing Magazine is an online publication magazine that covers topics ranging from web design, graphic design, coding, to mobile development. All that while being absolutely free.

We included Smashing Magazine as the best resource to learn WordPress because it has an extended category that exclusively contains all things about WordPress. The articles are also easily digestible for readers. However, you may find that most of the articles are not beginner friendly.

6. Official WordPress Lessons (Free)

Besides WordPress TV, WordPress.com also released a super friendly resource for beginners in learn.wordpress.com. This official tutorial resource will help you to learn WordPress basics for free.

Official WordPress Lessons will lead you step-by-step to make even the most basic configuration to your website. It covers tutorials from the preparing stage, picking a theme, personalizing your website, publishing posts and pages, and all the other basic functions. Although it’s not full of attractive images or videos, the steps can be followed easily by beginners. If you want to learn WordPress at an intermediate level, this resource is not recommended.

7. Team Treehouse (Free and Paid)

Team Treehouse is another online course platform that let you learn WordPress online. Different from Lynda.com is that it offers online courses for various topics, Team Treehouse focuses on giving education for technology related things only.

Team Treehouse also provides some paid plans. However, you have a 7 days free trial for every plan. The basic plan will set you back about $25 per month. For those who want to learn all of the most advanced features, Treehouse also offers the Pro and TechDegree plan that cost $49 and $199 per month respectively. With these more advanced courses, Team Treehouse offers various benefits such as unlimited access, download videos for offline learning, personalized feedback based on the code you made, or flexible scheduling. Moreover, this platform also offers packages for team learning company-specific goals.

8. WP101 (Paid)

WP101 is a video-based platform that focuses on sharing every tutorial about WordPress. This platform is best suitable for beginners. Moreover, WP101 promises that its beginner users will understand WordPress basic in 1 hour.

The videos in WP101 are also categorized for every difficulty level available for WordPress. Even more, WP101 will bring you to take a closer look at popular plugins for WordPress such as JetPack, Yoast SEO, Gutenberg, WooCommerce, and more. This educational platform also offers helpful answers if you have further questions about the platform.

To get the services above, you need to spend $49 per year. If you want the free solution from WP101, you can do so by going directly to their blog.

Conclusion

Although many people agree that WordPress is friendly for non-technical users, beginners often find it confusing. Therefore, we handpicked the 8 most useful resources where beginners and intermediate users can learn WordPress easily. Do you have any experience in learning WordPress from the resources mentioned above? Share your thoughts in the comment section below.

WordPress Image Sizes

WordPress Image Sizes

Reference link: https://www.hostinger.com/tutorials/wordpress-images-sizes

 Author :  Artūras B.

Handling images in WordPress can be a challenge. If you don’t pay enough to the requirements, you may get a messy website appearance wise or it could even impact the loading time. Therefore, you need to learn about the default WordPress image sizes and how to change them. Relax, grab your coffee, and let’s get this done!

How does WordPress Process Images?

Once you upload an image to your media library, WordPress will automatically generate additional images with 3 default image sizes and store them separately. Therefore, you will see 4 image options when you are uploading an image. These are the thumbnail, medium, large and full-size options. The first three options are called default WordPress images sizes, while the full-size option is the original image size that you upload.

WordPress creates these options because using different locations for placing images will require different image resolution. For example, the image resolution in the thumbnail may be different than the image resolution used in the slider. Therefore, you don’t need to edit and resize your images manually if you want to use the same images in different places with different resolutions. Only one image is needed and WordPress will do the rest.

What are default WordPress images sizes?

By default, WordPress comes with three pre-packaged image sizes. They are:

  • Thumbnail : (150px square)
  • Medium size : (maximum 300px width and height);
  • Large size : (maximum 1024px width and height);
  • Full size : (full/original image size you uploaded).

How to Change Default WordPress Image Size

Although WordPress already gives you 3 default image sizes if you decide that these choices don’t meet your needs, there are alternatives. Maybe, you need smaller thumbnails or wider featured images. Therefore, you need to change the default WordPress image sizes. To do so, you can follow the steps below:

  1. Go to your Admin Dashboard
  2. Hover your cursor to Setting -> Media
  3. In the Media Settings window, you can adjust the desirable pixels for each size
  4. Hit the Save Changes button to save the setting.

WordPress image sizes media settings

How to Add your Custom WordPress Image Size

So, you have the 3 default image sizes. Let’s say you have thumbnail size image for your thumbnail, medium size image for your post’s image, and large size image for your slider. But, you realize that you need more default image sizes for your pop up banner and widgets. Can you add custom WordPress image sizes? Yes, you can.

Step 1. Adding Custom WordPress Image Size by Editing the function.php File

Actually, some themes give you additional image size options. But, if you can’t find them, let’s add our own custom WordPress image size.

We will be dealing with code. So, make sure to make a backup file and create WordPress child theme before modifying anything.

  1. Go to your admin dashboard
  2. Hover your pointer to Appearance -> Editor
  3. Edit the functions.php file
  4. Copy the script below and paste it in the file
    1. add_theme_support( ‘pop-up-banner’ );
  5. Hit the Update File button.

The script above will activate the add_image_size() function. If this function is already active, you can add new WordPress images such as the following:

  1. add_image_size( ‘pop-up banner size’, 1000, 590 );
  2. add_image_size( ‘widget size’, 220, 180 );

In these examples, you’ll to give the additional size name “Pop-up banner size” and “Widget size.” The two numbers following the size name stand for the width and height.

Edit functions.php file and add custom WordPress image sizes

Step 2. Display the custom sizes in your Theme

You have successfully added the new image sizes. But, it has not been displayed in your theme. Now, you have to enable the new sizes in your theme.

First, make a backup of your site before you make any changes. Access your theme file inside the post loop and edit it. Then, paste this code;

  1. <?php the_post_thumbnail( ‘your-specified-image-size’ ); ?>

You should change ‘your-specified-image-size` with the name that you set in the previous step. For example, you can change it into ‘pop-up-banner size’. After following these steps, you can find pop-up-banner image size options when you upload images to your media library.

Useful Plugins

You have set a new custom image size in WordPress. But, this change won’t affect your previous images. So, you need to regenerate your previous image sizes.

Luckily, you don’t need to do it one by one manually. There is a plugin named Regenerate Thumbnails that will help you to update your previous image size. Follow the steps below to do this.

  1. Go to your admin dashboard
  2. Click Plugins -> Add New
  3. Type Regenerate Thumbnails in the search bar.
  4. Install and Activate the plugin
  5. Now, go to Tools-> Regenerate Thumbnails
  6. Click the Regenerate Thumbnails For X Attachments Button
  7. Now, all your earlier uploaded images will be regenerated to new image settings.

WordPress regenerate thumbnails instructions

Conclusion

WordPress image sizes look like a trivial thing, but in fact, can give you a headache. Sometimes you will find that the image you upload doesn’t fulfill the desired image size that you want. To solve this, you can try two methods. You can change the default WordPress image sizes or add custom image sizes. Before you set up the new image size, remember that uploading big images with a high resolution is not a good idea. Large size images will take up a lot of space and slow down your sites loading time. We hope this article helps you to choose the right images, in the right place, with the right sizes. See you!

Pin It on Pinterest