30Blog

Zblog development tutorial: calling method of article list introduction

Methods of calling article list introduction in zblog template development:

 {php}$description = preg_ replace('/\s(?=\s)/', '', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),100)).'...'); {/php}

Among them, 100 is the number of characters called, which can be modified according to the situation;

The label displayed in the call profile is:

 {$description}


QQ pre-sale consultation