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 foreign similar email systems such as ConvertKitGetResponse, AWeber, etc. pay tens of dollars a month, but the number of subscriptions allowed is very limited.No
The Comet Cache was suddenly found when we were struggling with the WordPress cache. Referring to the WordPress cache plug-in, we may see that WP Super Cache is used more frequently. The difference between the Comet Cache plug-in and the former is that it will directly store the cached 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
Advanced Custom Fields is a particularly powerful custom field plug-in that allows you to add various forms of custom field types, such as ImageCheckbox、File、Text、Select、True / False、Lin…
Recently, cloud template is customizing an anti chain management plug-in for a customer. It needs to automatically detect whether anti chain friend chains exist. How to detect anti chain?The Dom of PHP can be used to determine whether the href of tag a exists.The core code is as follows: $body='test 22vd test';//
We often encounter editor problems in wordpress development,Wordpress comes with an editor, wp_editor, which has the function of uploading pictures, but needs to be added to the media and pop up the window of the media library. This may not be friendly to users who submit articles at the front desk.So how can we get ahead