The code in the picture wants to output columns and articles belonging to that column at the same time. It can output columns and articles, but it cannot control the fixed number of output for each column. The background limit can only control the total number of articles output. . I would like to ask how I can control each column to output fixed articles.
The solution has been found. The control layer code is used incorrectly. I originally used the simplest select method. The two data tables were queried and output separately. The front-end code could not control the output. Use the foreach method to connect the two data in the control layer. If the table is output again, the control problem can be solved. You don’t need to use the template’s <if condition>, but it’s still a problem because you’re not familiar with your own code.