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 two thousand four hundred and twenty-five 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 two thousand five hundred and fifty 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_DEBUG in the development environment. 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 one thousand four hundred and seventy-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 one thousand three hundred and ninety-five 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 one thousand three hundred and forty-two 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, we need to create a new data table in WordPress. We really don't want to look at the source code and go to a search engine to search "WordPress New Data Table". After excluding csdn and "it1352", such hot chicken websites, the results are almost the same. Most of them are 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 one thousand seven hundred and ninety-one 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 one thousand and seven hundred 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 the direct foreground printing found a problem:$ cs_time=strtotime('2022-01-1709:00:00'); var_dump($cs_time); result... Wordpress Tutorial 2022-02-17 one thousand four hundred and seventy-two 0 Comments #Wordpress time zone #Strtotime time zone
-
Wordpress related article function code example -
I wrote an article about how to call zblogphp before? Zblog related article function introduction ", this article introduces the function implementation code of 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 one thousand four hundred and eighty-five 0 Comments #Wordpress related articles #query_posts
-
Wordpress calls specified field article data+specified field sorting -
The fields in the WordPress 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 to do this:$ args = array( 'numberposts' =&... Wordpress Tutorial 2021-12-30 one thousand six hundred and fifty-three 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 rather 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 page and bind the template. Instead, it can directly enter the URL of "domain name/tags" to open it and bind the specified template file. The requirements are clear. Now let's share the following ideas (statement: I also write code for search engines...) 1. Create a new folder under the theme folder specifically Wordpress Tutorial 2021-12-24 one thousand six hundred and sixty-eight 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 seven hundred and eighty-three 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 Screenshot of AliCloud OSS configuration item acquisition steps, including ID and Secret, regional node endpoint, storage space bucket and resource access domain name 04-14 -
two The cause and solution of verification code error is always prompted in the background of zblog login 03-01 -
three Zblog uses api to submit post data, prompting the reason and solution of 419 error 02-23 -
four Tianxing Studio 2025 Spring Festival Holiday Announcement 01-25 -
five Tutorial of setting "WeChat notification" function of Tianxing user center plug-in 11-09 -
six Alibaba Cloud 2024 Double 11 Event is recommended to participate through the website link and give away vouchers on the website 11-05 -
seven Shopping activity on the official website of Tianxing Studio: unlimited number of times and amount of 20% discount coupons 04-17 -
eight Tianxing Studio zblog pure blog theme vue3+applet dual version 03-19 -
nine Error causes and solutions of introducing vant into vue3 project 03-12
-
Label aggregation -
×1 Global Settings ×1 sales promotion ×1 Qq interconnection ×1 website ×1 hang out ×1 Revision ×1 Embedded width height ×1 Pseudo static configuration ×1 Share code online ×1 Embarrassment Encyclopedia ×1 Css placeholder ×1 Js special effect ×1 Swaper Document ×1 Zbp theme ×1 Dedecms installation template ×1 Red brown yellow color matching ×1 Zblog language settings ×1 Specify Article ×1 Get the specified id article ×1 The server
Latest comments
-
Tianxing Studio 02-08 No restrictions Commented on: Tianxing Studio zblog Taoke theme is suitable for promoting websites with content -
visitor 02-08 Do you think the users of zblog Taoke must be enterprises? Commented on: Tianxing Studio zblog Taoke theme is suitable for promoting websites with content -
kevel 11-09 Guys, throw away some demo stations other than the authors. I want to see your layout settings Commented on: Template of zblog navigation station of Tianxing Studio with news, pictures and Taoke module -
Interesting life 10-22 I have always wanted to develop the functions of zblog. I don't know whether the application of zblog is enough Commented on: Code of zblog calling the latest comment (the latest message) -
visitor 10-16 When publishing an article, how to change the default status, such as changing to the default approval status? Commented on: Zblog article management: zblog creates and publishes articles