Roles In WordPress
Roles in WordPress are used to give power to certain users. There are in total six roles available by default in WordPress. List in order from the least to most capability.
Subscriber
:- Can manage their own profile.
- Can leave comments on posts.
- Limited access to site settings and configurations.
Contributor
:- Can write and edit their own posts but cannot publish them.
- Can submit posts for review by an Editor or Administrator.
- Can manage comments on their own posts.
- Limited access to site settings and configurations.
Author
:- Can publish, edit, and delete their own posts.
- Can upload media files.
- Can moderate and manage comments on their own posts.
- Limited access to site settings and configurations.
Editor
:- Can publish, edit, and delete any post or page.
- Can manage categories, tags, and comments.
- Moderate comments on all posts.
- Limited access to site settings and configurations.
Administrator
:- Full control over the site.
- Can manage users, plugins, themes, and settings.
- Access to all site configurations.
Super Admin
:- In a multisite network, the Super Admin has complete control over the entire network.
- Can manage network-wide settings, sites, and users.
- This role is specific to WordPress multisite installations.
Permalinks
The default permalink structure in WordPress uses the “Plain” setting. It typically results in URLs that include the post or page ID and are not as user-friendly or SEO-friendly as other permalink structures. The format looks like this:
http://demo.tdl/?p=123
Other permalink structures are:
- Plain:
http://url.tdl/?p=123
- Day and Name:
http://url.tdl/2024/02/15/sample-post/
- Month and Name:
http://url.tdl/2024/02/sample-post/
- Numeric:
http://url.tdl/archives/123
- Post Name:
http://url.tdl/sample-post/
- Custom Structure:
http://url.tdl/%category%/%postname%/
WordPress Multisite
WordPress Multisite is a feature that allows you to run multiple WordPress websites from a single installation. It enables you to manage and administer a network of interconnected sites more efficiently.
To enable Multisite, you need to add a line to your wp-config.php file and configure your WordPress installation. This is typically done during the initial setup, and it involves defining WP_ALLOW_MULTISITE
and configuring the network settings.
Once Multisite is enabled, you can access the Network Setup screen from the WordPress dashboard. This is where you configure the network settings, such as choosing between subdomains or subdirectories for site URLs.
With Multisite, you can create and manage multiple individual websites within the network. Each site has its own content, settings, and users.
Plugins and themes can be activated network-wide or on individual sites. Super Admins can control which themes and plugins are available for activation on the network level.
Users can have different roles on different sites within the network. A user registered on one site can use the same credentials to log in to other sites in the network.
While each site in the network can have its own content, Multisite allows for content sharing between sites. Super Admins can enable or disable content-sharing options.
Installation on LocalWP
Setup the website that you would normally do. In the “set up WordPress” section click on the “Advance Option” and select Yes for the Multisite.
choose either the Subdirectory or Subdomain according to your liking. Click on add site and it will set it up on your local development environment.
Leave a Reply