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}
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!