Home>Article>CMS Tutorial> 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?

藏色散人
藏色散人 Original
2020-04-07 09:24:11 2639browse

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} {$r[title]} {/loop} {/pc} {/loop} {/pc}

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!

Statement:
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