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 one hundred and eighty-seven 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 and twenty-six 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 the "wp-config.ph..." Wordpress Tutorial 2022-04-02 five hundred and sixty-seven 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 six hundred and two 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 five hundred and twenty-three 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 eight hundred and three 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 seven hundred and two 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 six hundred and eight 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 five hundred and seventy-seven 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 eight hundred and forty-five 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 seven hundred and seventy-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 eight hundred and seventy-seven 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 Zblog gets the title/link/ID and other attributes of the current page 02-02 -
two Notice of Tianxing Studio's 2023 Spring Festival Holiday 01-19 -
three Windows+php studio+Apache set the method to allow cross domain requests 01-09 -
four Troubleshooting method and solution for website using pagoda panel server CPU occupying 100% 01-04 -
five Hello, 2023 01-01 -
six Baidu applet spicy chicken? 12-07 -
seven The launch of Tianxing Studio's WeChat applet version 2022 is the same as the WeChat applet Baidu applet customization 12-05 -
eight How does the zblog application center issue invoices? Invoicing process after purchasing an application in the zblog application center 11-29 -
nine Detailed description of zblog template article publishing time format 11-23
-
Label aggregation -
× one Back to top × one Ckplayer parsing × one Tencent Video × one Wordpress installation plug-in × one Swiper navigation bar × one Zblog Download Template × one Circle of friends × one Dedecms error × one Server discount × one Publish article × one Zblog call tag × one Emlog Tutorial × one Wiki template × one hacker × one slide × one setupconnection × one BxSlider parameter × one wordpress cms × one Mouse effect × one User Center Plug in
Latest comments
-
visitor 01-07 It's the Spring Festival in 2023 Commented on: Notice of Tianxing Studio's 2022 Spring Festival Holiday -
visitor 12-01 Is there an old article time to update the plug-in Commented on: Detailed description of zblog template article publishing time format -
Swordsman Book 11-29 Too detailed, thanks for sharing! Commented on: Detailed description of zblog template article publishing time format -
Tianxing Studio 11-16 It may not be purchased in the application center. It is recommended to contact the application author to check Commented on: What if zblogphp encounters an error? How to solve it? -
wukak 11-16 The zblog enabling theme displays "The purchase account is inconsistent with the application center login account". What should I do? Who can do me a favor Commented on: What if zblogphp encounters an error? How to solve it?