Wordpress Tutorial
-
The number of articles displayed per page is different for different categories of wordpress -
Recently, I was preparing to convert the app theme of Tianxing Studio from zblog to wordpress. In the process, I encountered the need for different classification settings and the number of articles displayed per page. After solving this problem, I wrote this tutorial to introduce the next process. The number of articles displayed on each page of WordPress is set in the background - Settings - Reading - Blog page at most by default, but this is a public configuration, and all categories will use this number. When we need Wordpress Tutorial 2022-04-24 one thousand four hundred and fifty-nine 0 Comments #Wordpress hook #Wordpress pagination #Number of wordpress pages turned
-
Wordpress gets the top-level classification ID of the current classification and calls the subcategory -
When creating a wordpress theme, we met a need to obtain the sub category list of the current category in a category, and also judge that if the current category has a top-level category, we will obtain the sub category list under the top-level category. First, create a new function in functions.php to obtain the classification ID://to obtain the classification ID. The function parameter is the IDfu of the current classification whose type is int Wordpress Tutorial 2022-04-15 one thousand three hundred and forty-four 0 Comments #Wordpress subcategory #Wordpress top-level classification #get_ categories
-
Functions and Switches of Wordpress Development Mode (DEBUG) -
WordPress has a development mode, which is officially introduced as follows: developer specific: WordPress debugging mode. Change this value to true, and WordPress will display all prompts for development. It is strongly recommended that plug-in developers enable WP in the development environment_ DEBUG。 For additional information that can be used for debugging, visit Codex. It is off by default. If you want to enable it, open "wp-config.ph..." in the root directory Wordpress Tutorial 2022-04-02 seven hundred and forty-one 0 Comments #wordpress debug #Wordpress development mode
-
Wordpress obtains the website title of the previous article and the next article separately -
Wordpress has many functions to get from the previous and next articles. By default, it uses the "previous_post_link()" function in the previous article and the "next_post_link()" function in the next article. However, these two functions output a complete A tag. Although they can also be customized, how to customize their output is still html. In some personalized topics, these two functions Wordpress Tutorial 2022-03-22 seven hundred and nineteen 0 Comments #Wordpress Previous #Wordpress Next
-
The post returns 404 after calling "wp blog header". The cause and solution of the problem -
In the last article, I wrote about "the code and steps for creating a new data table in WordPress". As a result, I encountered this problem. After creating a new data table, you need to add, delete, modify and query it. Wordpress built-in "$wpdb" can be used directly and conveniently. A separate php file has been created. Before using "$wpdb", the "wp blog header. php" file in the root directory should be imported to load wordpro Wordpress Tutorial 2022-03-05 six hundred and twenty 0 Comments #Wordpress data table #wp-blog-header
-
The code and steps for creating a new data table in WordPress -
Today, when customizing for a customer, you need to create a new data table in WordPress, I really don't want to see the source code. I went directly to a search engine and searched "Wordpress New Data Table". After excluding csdn and "it1352", the results were almost the same. Most of them were copied from an article "I love boiled fish". Then I directly copied the code of boiled fish. After testing, I found that the new data table was not successful. Comprehensive Wordpress Tutorial 2022-03-04 nine hundred and eighty 0 Comments #Wordpress Create New Table #Wordpress database
-
Solution to the problem that Wordpress calls the article content label and the article content does not break lines -
The tag "$post ->post_content" is always used to call the article content when writing the wordpress template, but one user feedback that the article content keeps running. I went to the website and found the problem. Instead of using the Gutenberg editor to publish articles, users used the old editor. The wonderful thing about the old editor is that when editing articles, press the Enter key in the editor Wordpress Tutorial 2022-02-22 eight hundred and forty-one 0 Comments #wordpress #Gutenberg #Gutenberg
-
The solution to the time zone problem when wordpress uses strtotime -
Today, I found a problem when writing a WordPress theme background. The time set in the theme configuration does not match the timestamp output from the foreground. Then direct foreground printing found a problem: $cs_ time=strtotime('2022-01-1709:00:00'); var_ dump($cs_time); result... Wordpress Tutorial 2022-02-17 seven hundred and nineteen 0 Comments #Wordpress time zone #Strtotime time zone
-
Wordpress related article function code example -
I wrote an article before, "How is the zblogphp related article called? Function introduction of the zblog related article". This article introduces the function implementation code of the wordpress related article. First of all, let's explain what the logic of this related article is. Whether it is zblog or wordpress, the article relevance is related through the tag tag. If two articles have the same tag tag, then the related article module of one article Wordpress Tutorial 2022-02-13 seven hundred and sixty-two 0 Comments #Wordpress related articles #query_ posts
-
Wordpress calls specified field article data+specified field sorting -
The fields in WordPress's article main table are very compact. The number of views needs to be written to the meta table to query the associated table. If you want to call the article data according to the number of views, you can use the "get_posts()" function: $args=array ('numberposts'=& Wordpress Tutorial 2021-12-30 one thousand and thirteen 0 Comments #Popular articles in wordpress #Wordpress specifies the article
-
Wordpress Custom Page Settings Custom Route Binding Custom Template -
The title of this article is awkward, The detailed description is that the wordpress website needs to add a function page similar to "tag summary", and it does not need to go to the background to add a new page and bind the template, but directly enter the URL of "domain name/tags" to open it, and also bind the specified template file. The requirements are clear. Now let's share the following ideas (statement: I am also a code written for search engines...) 1. Create a new folder under the theme folder for Wordpress Tutorial 2021-12-24 nine hundred and eighty-six 0 Comments #Wordpress customization #Wordpress routing #Wordpress template
-
Wordpress gets the total number of articles, categories, tags, etc -
When creating a wordpress template, you will need to call the total number of articles on the website, the total number of categories, the total number of tags, etc. It would be too much to directly query the database with count. Fortunately, WordPress has built-in tags that can directly obtain these values. This article has sorted out some commonly used WordPress website total tags. Total number of articles:<? php $count_ posts =&... Wordpress Tutorial 2021-12-23 one thousand and eighty-six 0 Comments #Total number of wordpress articles #Total wordpress tags #Total wordpress classifications #Total number of wordpress users
Can't find a tutorial that can solve your problem?
-
Zblog enterprise theme -
Zblog image theme -
Zblog resource topic -
Zblog CMS topic -
Wordpress template -
Zblog video theme -
Zblog Taobao guest theme -
Zblog navigation topic
Select a theme?
-
Latest articles -
Hot article ranking -
Most Comments
-
one Tianxing Studio 2023 Double 11 Event: 50% discount coupons 11-05 -
two Tencent Cloud 2023 Double 11 Activity: 2H2G3M lightweight server 88 new users for one year 11-05 -
three AliCloud 2023 Double 11 Activity: 2-core 2G3M bandwidth ECS 99 yuan/year! 10-31 -
four Tianxing Studio zblog free login paid reading plug-in supports Alipay WeChat payment Hupi Pepper payment 10-09 -
five [Offline] Tianxing Studio 2023 Double Festival Activity: 50% discount coupon 09-29 -
six 51. If the js file counted by la is hijacked, it will jump to the illegal website 09-27 -
seven Tianxing Studio applet plug-in: quick hand applet version steps 08-29 -
eight Tianxing Studio Form Plug in SMS Notification Function Instruction Document 07-04 -
nine Tianxing Studio - list data optimization - search result is empty optimization - tag list is empty optimization 06-13
-
Label aggregation -
× one New article in zblog × one Zblog optimization × one Zblog template development × one IETester × one Double 11 red packet grabbing plug-in × one Apple cms × one Vip member × one Ytcms for zblogasp × one summer vacation × one Dedecms field × one Send charging plug-in × one Domain name discount × one Dance Academy × one Wordpress installation plug-in × one alias × one Front end road × one Verification Code × one Zblog dedicated host × one grid × one Font icon
Latest comments
-
Tianxing Studio 08-05 All I can say is that it's not necessary Commented on: Tianxing Studio: zblog applet plug-in - adapted WeChat applet/Baidu applet/dithering applet/quick hand applet/Alipay applet -
visitor 08-05 I think it is acceptable if the attachment in the applet is copied and prompted to the browser to open Commented on: Tianxing Studio: zblog applet plug-in - adapted WeChat applet/Baidu applet/dithering applet/quick hand applet/Alipay applet -
Tianxing Studio 08-05 It's meaningless for download station to do applet. There are too many restrictions on applet Commented on: Tianxing Studio: zblog applet plug-in - adapted WeChat applet/Baidu applet/dithering applet/quick hand applet/Alipay applet -
visitor 08-05 Hopes the applet can add download function Commented on: Tianxing Studio: zblog applet plug-in - adapted WeChat applet/Baidu applet/dithering applet/quick hand applet/Alipay applet -
visitor 08-05 The applet cannot be downloaded as an attachment?, Is it meaningless for download station to do applet Commented on: Tianxing Studio: zblog applet plug-in - adapted WeChat applet/Baidu applet/dithering applet/quick hand applet/Alipay applet