Provide zblog template_zblog them_wordpress template download and customization

Wordpress Tutorial

Wordpress Tutorial Summary: collect and summarize various wordpress tutorials

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 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

Functions and Switches of Wordpress Development Mode (DEBUG)
 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 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

The post returns 404 after calling "wp blog header". The cause and solution of the problem
 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

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

Solution to the problem that Wordpress calls the article content label and the article content does not break lines
 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

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 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 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

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 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

Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation