WordPress is the CMS configured from:
- PHP > backend programming language
- MySQL, MariaDB > Database
- HTML / CSS / JS > front end
wordpress folder structure
/*
/wp-includes *
/wp-admin *
/wp-content
In which the wp-content folder belongs to the user > and the other folders are the core of wordpress
There are many CMSs other than WordPress. In the PHP programming language system there are:
- Drupal
- Joomla!
- Opencart
Along with PHP, Lavarel also has a lot like
- October CMS
- Asgard CMS
- Lavalite CMS
Also, about ASP.NET there are
- Dotnetnuke
- Kentico
- Mojoportal
CMS stands for Content Management System which is a website's content management system, which controls all activities about the content and information of the website. This includes news, photos, videos, categories, contact information, etc. on the website. In particular, with advanced CMS, users can also edit, categorize categories, even change the interface display and many other complex operations on the website.
Why use CMS?
Programmers write the functionality of the website, but it is the content that makes the website shine.
Programmers are responsible for giving birth, but marketing and content are education and upbringing.
CMS yes important role in the control and operation of the website. With the following basic functions:
- Create and store content on the website
- Edit, add, remove content
- Transfer and share content
- Manage and decentralize users
CMS brings a lot of benefits to individuals and businesses. So for the following 3 reasons, CMS is becoming quite important:
- Make your website an effective marketing channel
- Help update content
- Ensure and maintain business consistency
What is SEO?
SEO is an acronym for Search Engine Optimization (search engine optimization), is a process of improving the ranking of a website on search engines so that users can find a website more easily on the search results table.
What HTML tags are important for SEO?
https://www.socialmediatoday.com/news/8-of-the-most-important-html-tags-for-seo/574987/
- Title tag in header
- Meta tag in header
- Heading tags (H1 > H6)
- Image alt text
- Schema markup
- HTML5 semantics tag
- Meta robots tag
- Canonical tags (more details)
Google is their database search service. To build this database, they will have to build a lot of robots crawling data. So fast servers, clear structure will help them save a lot of costs.
In addition, for users, everyone prefers a fast website over a slow one
Some speedtest website services
https://pagespeed.web.dev/ (google)
Test on local > Chrome's Network tab
Optimizing web site speed, the simplest way is to convert from dynamic web (php) to static web form (html). Or later there are react technologies (not covered in this post)
See more detailed instructions on how to create cache using wp-rocket > https://crm.jaybranding.com/knowledge-base/article/toi-uu-hoa-toc-do-website-thong-qua-nen-cac-file-js-css-va-cache
POST or PAGE or custom content all come from the same database table of wordpress. Where POST ID is the primary key to bind other strings. Let's see a wordpress REST API example related to post
https://www.jaybranding.com/wp-json/wp/v2/posts/
Thus, all WordPress data is saved in the form of POST template. Then defined into different formats such as ROOM, SERVICES, PAGE, TAG, CATEGORY ...
And other extra features such as: save languages, save revisions, save drafts, save media...
Therefore, in the programmer's experience, in addition to looking at the URL, you also have to know how to see the post's ID. For example, when editing, notice the text postID = ###
Default to access a page without remembering the link by www.website.com/?p=123 (123 is the post ID)
In addition, to add a custom field, you can use the default custom field of wordpress (not user-friendly). Or use the PODS plugin. See instructions here
File wp-config.php – This is the connection file between the MySQL database and the PHP code. In this file will contain username / password and database connection information. This is the first setting to do when making a wordpress website
WordPress Settings
- General: this is the second most important settings item in wordpress, it should be done right from the login step to the site. In it, do not leave any boxes blank
- Permalinks: the third importance because it will help the website to be clear and easy to read. As well as good for SEO and caching (default does not cache when the URL has parameters)
- Reading: starting to set up the web, this part can be done later, not too important