


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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft