The implementation code is as follows:
{pc:content action="lists" catid="1" num="20" where="posids!=1" order="id desc"} {loop $data $v} <li><a href="{$v['url']}">{$v['title']}</a></li> {/loop} {/pc}
Call the article list with category ID 1, and set the condition posids not equal to 1. In this way, the function of non-duplicate articles between the pinned article and the article list is realized.
Related article tutorial sharing: phpcms tutorial
The above is the detailed content of How to implement the article top function in phpcms. For more information, please follow other related articles on the PHP Chinese website!