Wordpress 如何检查是 POST 还是 PAGE [英] Wordpress How to Check whether it is POST or PAGE
本文介绍了Wordpress 如何检查是 POST 还是 PAGE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 WordPress 中检查文章是帖子还是页面?
How to check if an article is a post or a page in WordPress?
推荐答案
您可以使用 is_page() 和 is_single() 函数.
You can use the is_page() and is_single() functions.
这篇关于Wordpress 如何检查是 POST 还是 PAGE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文