Home > CMS Tutorial > PHPCMS > How to implement the article top function in phpcms

How to implement the article top function in phpcms

王林
Release: 2020-02-06 17:12:32
Original
3053 people have browsed it

How to implement the article top function in phpcms

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[&#39;url&#39;]}">{$v[&#39;title&#39;]}</a></li>
{/loop}
{/pc}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
How to uninstall phpcms
From 1970-01-01 08:00:00
0
0
0
phpcms cannot be installed
From 1970-01-01 08:00:00
0
0
0
phpcms access address does not exist
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template