WP-Syntax code writing format: <pre lang=”html” line=”1″ escaped=”true” > //Add code here…… </pre> lang=”html” means that the code language is html, please modify it according to your needs; line=”1″ means the display line number, if not needed, just remove it; escaped=”true” is to prevent code escaping, if not needed , Just remove it. Note: Use […]
Month: February 2021
How to Add a Paging Navigation Menu in WordPress
The paging navigation menu is an essential element of a website. Today, I will share with you the WordPress code that I have used for a long time to add a paging navigation. Put the following code in functions.php: function par_pagenavi($range = 9){ global $paged, $wp_query; if ( !$max_page ) {$max_page = $wp_query->max_num_pages;} if($max_page > […]
How to display full-size images in WordPress?
Do you want to learn how to display full-size images in WordPress? The latest version of WordPress automatically resizes large images to improve performance. But sometimes you may need to display images with larger dimensions. In this tutorial, we’ll share four different ways to display full-size images on your WordPress site. Why is WordPress Scaling […]
The first release candidate for WordPress 5.7 is now available!
You can test the WordPress 5.7 release candidate in two ways:
Try the WordPress Beta Tester plugin (choose the “Bleeding edge” channel and Beta/RC Only” stream options) Or download the release candidate here (zip).
WordPress 5.6.2 is now available!
WordPress 5.6.2 is now available!
This maintenance release includes 5 bug fixes. These bugs affect WordPress version 5.6.1, so you’ll want to upgrade.
You can download WordPress 5.6.2 directly, or visit the Dashboard → Updates screen and click Update Now. If your sites support automatic background updates, they’ve already started the update process.
WordPress uses jquery.lazyload.js image lazy loading plugin to improve website opening speed
Too many pictures on the website will greatly affect the opening speed. If there are too many pictures, the user may run away before all pictures are loaded. But sometimes pictures are necessary. Apart from shrinking the pictures on the website, the number of pictures can no longer be reduced. What should I do?
What all junior WordPress developers should know
Anyone calling themselves a junior WordPress developer should know HTML and CSS, some basic PHP, and how WordPress works. That’s a given, and people who apply to our Junior vacancies already know these things.
In addition to the basics above, there are more things they need to know to successfully apply these skills to do custom WordPress theme development.
Get HD cover images of youtube videos in various sizes
How to get the url of Youtube video cover image: Just copy the cover image address below, and then replace the video ID inside with the target video ID.
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
Cannot connect to Mysql through /tmp/mysql.sock. The reason is that this socket does not exist. Two versions of mysql are installed, one is 5.7, socket…
How to change the default word length of summary of the function the_excerpt() in WordPress
The WordPress summary function the_excerpt() default display number of words can be modified as the following: