Home > CMS Tutorial > PHPCMS > What should I do if phpcms does not display recommended articles when calling articles?

What should I do if phpcms does not display recommended articles when calling articles?

藏色散人
Release: 2020-04-07 09:24:11
Original
2839 people have browsed it

What should I do if phpcms does not display recommended articles when calling articles?

What should I do if the recommended articles are not displayed when calling articles through phpcms? How to not display a certain recommended article on the list page

This effect only meets special needs and not many people use it, so I won’t explain it too much.

The detailed tags are as follows:

{pc:get sql="SELECT `id` FROM `v9_position_data` WHERE `posid`='2' AND `catid`=$catid ORDER BY `v9_position_data`.`id` DESC" num="10"}
{loop $data $d}
{pc:get sql="SELECT `url`,`title` FROM `v9_news` where `id`<>$d[id] AND `catid`=$catid ORDER BY `v9_news`.`inputtime` DESC" num="10" return="info"}
{loop $info $r}
<li"><a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a></li>
{/loop}
{/pc}
{/loop}
{/pc}
Copy after login

The effect of the above code is to not display the 10 articles recommended by the headlines on the homepage.

Related recommendations: phpcms tutorial

The above is the detailed content of What should I do if phpcms does not display recommended articles when calling articles?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template