Deploy phpMyAdmin on Ubuntu 20.04 LTS

The followings are the orders for linux commands

Deploy phpMyAdmin on Ubuntu 20.04 LTS from Tonvin Tian on Vimeo.

sudo passwd root
ospwd9894
su root

apt update
apt install nginx
apt install mysql-server
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'sqlpwd345';
flush privileges;

apt install php7.4

apt install php7.4-fpm
apt install php7.4-curl
apt install php7.4-mysql

wget https://files.phpmyadmin.net/phpMyAdmin/5.0.2/phpMyAdmin-5.0.2-all-languages.zip

apt install unzip

unzip phpMyAdmin-5.0.2-all-languages.zip

vim /etc/nginx/sites-available/default #enable php

service php7.4-fpm start

service nginx start
service mysql start

Using plugin advancedcustomfields extend your wordpress post and page

advancedcustomfields plugin would help you take full control of your WordPress edit screens & custom field data.

If your site post/page/user need add some customed fields,this plugin   was convenient to help you.the following video shows how to add customed fields to your posts and pages.

In the above video,i add fields age and phone to Profile page,

add vocals and guitars field to some Band post.

if you will publish many posts and pages,you can specify custom fields value for each.

WordPress set excerpt from first paragraph of content

This video shows how to set excerpt from first paragraph of content in wordpress.if you want to set the index page show post excerpt replaced full content,you can change the sub  content template to  excerpt template in the loop.and then add_filter to the 'wp_trim_excerpt',and using substr function get the first paragraph of the content.

Add the following code into theme file functions.php