freeCodeCamp/guide/english/wordpress/index.md

155 lines
8.7 KiB
Markdown
Raw Normal View History

---
title: WordPress
---
![wordpress logo][logo]
2018-11-25 18:02:17 +00:00
[logo]: https://s.w.org/style/images/about/WordPress-logotype-standard.png
2018-11-11 14:40:32 +00:00
## WordPress
2018-12-04 22:10:41 +00:00
WordPress is a free and open-source content management system based on **PHP** and **MySQL**. Features include robust user management, an extensible theming and plugin architecture, and a flexible template system. It is most associated with blogging but supports other types of web content including forums, media galleries, and online stores.
WordPress was first launched in 2003 and now powers over 30% of all websites. It is by far the most used CMS on the planet. Backed by a huge community, this open source platform powers not only countless sites but a multi-billion dollar economy with themes, plugins, and custom software.
Both easy to use and highly customizable, Wordpress offers an easy solution for both web developers and non-web developers alike to create a site.
Just to name a few advantages of WordPress:
* Users are able to manage their Wordpress webpage from any computer
* Has a blog built-in and ready to go whenever applicable.
* Has continous updates that occur every 3-4 months.
* SEO compatible so that the sites can be found easier.
* Has plugins, which extend functionality to WordPress sites.
* Has mobile app (Android and iOS), which can be used to post and manage their Wordpress webpage.
* Wordpress sites can be hosted on any server running the LAMP stack
2018-11-11 14:40:32 +00:00
Whether it is page transitions or a customized contact form, WordPress users are only a few clicks away from success and a beautiful website.
### WordPress as Blogging Platform
Blogging is a foundational feature of WordPress. One of the primary things it allows you to do is create individual "posts", and designate a main blog page that displays them in chronological order.
It supports many useful publishing features out of the box, like the ability to add images, save drafts, enable comments, and organize your posts with tags and categories. And it includes an admin dashboard for managing posts, media, site menus, settings, and more.
### WordPress as CMS
In addition to posts, WordPress also comes with the ability to create "pages" — any non-chronological page on your site, like an "About" or "Contact" page.
What makes WordPress particularly powerful is that it's possible to create other custom page types as well. You could, for example, create your own classifieds site with a "listings" page type, or a book review site with a "review" page type, and even assign custom data fields and taxonomies to these as well. Using a combination of plugins and custom coding, you can adopt WordPress as a content management system for all kinds of uses.
2018-11-20 23:33:59 +00:00
### Templates
WordPress does not require work from scratch. For ease of new developers there are tons of free templates available on internet which can be used by basic developer.
Few websites which provides these free templates are:
- [AThemes](https://athemes.com/collections/free-wordpress-themes/)
- [WordPress](https://wordpress.org/themes/)
- [Just Free Themes](https://justfreethemes.com)
### Themes and Plugins
WordPress has a few great ways to extend its core functionality. Among these, the main buckets are themes and plugins.
Themes typically provide an overall framework for the design and functionality of a site. WordPress has many free themes available, and there's a large ecosystem of professional-grade themes available at reasonable prices.
Plugins extend WordPress functionality in specific ways, adding features like mailing list integrations, contact forms, enhanced security, or custom data fields. As with themes, there's a huge number of plugins available, many of them free, or with both free and pro versions available, covering almost any feature you might think of.
The following are some of the popular and useful plugins in WordPress:
- Yoast SEO
- JetPack
- W3 Total Cache
- Akismet
- Mailchimp etc
### From Blogging Platform to CMS
The power of WordPress becomes apparent in the use of 3 features: custom post types, custom taxonomies, and custom fields. Generating custom post types allows a website administrator or web developer to separate very specific content types from the rest of their website content. This can be helpful on websites with large page counts and numerous varying content sections.
For example: lets say you have a company website with a large number of products, numerous physical storefront locations, and a news/blog section. If all of that content was all crammed into the default posts or pages section of the website admin panel, navigating said sections could very quickly become an overwhelming mess.
In this instance, you could create a custom post type for products, a custom post type for locations, keep thing the default posts section exclusively for your news/blog content.
2018-11-11 14:40:32 +00:00
### WordPress.org vs. WordPress.com
The free and open-source version of wordpress is found at [https://wordpress.org](https://wordpress.org) and must be self-hosted on a server or local development machine. This is also the version of WordPress that is frequently available as a simple installation through cPanel on the majority of hosting providers. Meanwhile, a hosted version of WordPress is available [wordpress.com](https://wordpress.com), but this is not an open-source version. Users of the WordPress.com site may need to pay subscription fees to access many of the features and benefits of the open-source WordPress.
Here are some examples of big name brands using WordPress:
* Sony Music
* The New Yorker
* MTV News
Whether it's page transitions or a customized contact form, WordPress users are only a few clicks away from building a website.
Note: WordPress's ease of use may encourage new users to forget about website security. However, the popularity of WordPress increases the activity of malware and other issues.
It is important to choose extremely difficult or random passwords for the administrators and for the database. This guards against random brute-force attacks.
Using tools such as [Jetpack](https://jetpack.com/) and an [SSL certificate](https://www.verisign.com/en_US/website-presence/website-optimization/ssl-certificates/index.xhtml) increases your protection against unwanted attacks.
2018-12-04 21:15:41 +00:00
## Get Started With Wordpress
This guide will cover how to setup a basic Wordpress website. If anything is
missing I will go back and add more content.
### Domain
So, you need a domain because you want people to be able to browse your website! Get it from one of the providers, just make sure they
are reputable enough.
### Hosting
You will also need a place to make sure your website is alive and comfy.
I suggest you not to pick the same company as your domain and hosting
provider.
### Wordpress
You will need Wordpress software to "power" your website. You can get it from: https://http://wordpress.org/download/
### DNS
So, now it is time to link your domain and server. You should be able to browse
the FAQ of the domain provider or ask them to do it for you.
Your hosting provider will give you a nameserver and you can use that DNS
server address for your domain. Go to DNS Zone editor and make sure you
follow the exact steps your domain provider requries.
## Installing Wordpress
If you have cPanel, go on to Softaculous and select Wordpress. It will automatically install Wordpress for your domain name.
<br>
### Software Setup
Choose Protocol: http:// (I would prefer this or https://)
Choose Domain: yourdomain.com
In Directory: -Leave Here Empty-
### Site Settings
Site Name: My Blog
Site Description: Awesome blog about cycling and sight seeing!
Enable Multisite (WPMU): -NO-
### Admin Account
Admin Username: -Enter your desired admin username here-
Admin Passowrd: -Make sure the admin password is difficult- (https://strongpasswordgenerator.com/)
### Choose Language
Select Language: -Pick Your Desired Language-
###Select Plugins
Limit Login Attempts (Loginizer): -NO-
### Advanced Options
-Default are OK-
-Click Install-
Email Installation Details To: -youremail-
After confirming installation your will be on the WordPress Dashboard.
2018-11-20 23:33:59 +00:00
#### More Information
- [WordPress Theme Directory](https://wordpress.org/themes/)
- [WordPress Plugin Directory](https://wordpress.org/plugins/)
- [WordPress Github Repository](https://github.com/WordPress/WordPress)
- [WordPress Support Forums](https://wordpress.org/support/)
- [Download WordPress](https://wordpress.org/download/)
2018-12-04 21:15:41 +00:00
- [WordPress Codex: the online manual](https://codex.wordpress.org/)
- [WordPress Code Reference](https://developer.wordpress.org/reference/)
- [Automattic - The Home of WordPress](https://automattic.com/)
- [Advantages of WordPress](https://www.fastwebhost.com/blog/top-advantages-of-wordpress-in-2018/)
- [WordPress Coding Standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/)