In WordPress, we can easily use plug-ins or write code to add custom fields to articles or pages.This may be because there are few scenarios used, and there are few plug-ins and tutorials that support adding custom fields to media.In this article, let's take a look at how to add custom fields for WordPress media
In the WooCommerce background order list, we can filter orders according to order status, order date, and order customer. In some cases, it is necessary to filter orders according to the custom fields of WooCommerce orders. In this article, I will show you how to use WooCommerce background order list
In some systems set up by WooCommerce, the amount of orders is sometimes 0, such as free gifts of goods, free samples, and the total amount of shopping carts after using coupons.WooCommerce still needs to pay by default to generate orders for subsequent processing.When the cart amount is
When using Wordpress to obtain the statistics of today, yesterday, this week and this month's registered users, the problem is that the date is UTC time. So how to convert it to UTC+8 before statistics?Use CONVERT_TZ (` user_registered `, '+00:00', '+08:00') ad
To get the total number of articles in WordPress, you can use the WP_Query class or the query_posts function.The following is an example code that uses the query_posts function to obtain the total number of articles: In the above code, the query_posts function is used to set new query parameters, where post_
To add the image upload function to the WordPress menu, you can use the Custom Menu Items function and the media upload function provided by WordPress.The following is a sample code: section First, in the function of your topic
WordPress hides the left column menu added by plug-ins and themes in the background. Some plug-ins and themes will add menus in the left column of the background after they are enabled. Although it is convenient to open the setting page, it is not convenient to open more left column menus, and you can hide some unnecessary menus. add_action( 'admin_menu', …
If we are testing a website and do not need user access, we can set it to stop running. If we have established some private websites such as image library, software library, etc., we can set user name and password access.Of course, this is still very simple for the pagoda panel. This article talks about how to shut down the designated website and access the designated user name and password
When WordPress was established, we used to use QQ's email subscription, but later it was not easy to use QQ's email subscription. Of course, we can choose similar foreign email systems such as ConvertKit, GetResponse, AWeber, etc., and pay tens of dollars a month. Needless to say, the number of subscriptions allowed is very limited.No
Comet Cache was suddenly found when we were struggling with the WordPress cache. When we mentioned the WordPress cache plug-in, we might see that WP Super Cache is used more frequently. The difference between the former and the Comet Cache plug-in is that it will directly cache files in the directory as HTM
PWA is the abbreviation of Progressive Web App, which translates into progressive enhanced web applications. It is a concept proposed by Google in 2016 and a web technology launched in 2017.The purpose is to use the provided standardized framework on the mobile end to achieve the similarity with native applications in web applications
Some websites have many columns, and it is difficult to display all these columns in a single line of website navigation. In this case, you can display more navigation columns by making a two-level drop-down menu.Now, let's introduce a simple method of making a two-level drop-down menu for Wordpress website navigation to students who are learning to build websites.Unzip the downloaded compressed package, and then