社区
PHP
帖子详情
精通wordpress的看下,我在表posts加了一个字段cover,但为啥模板调用不出来呢。
看小雪
2016-12-25 10:07:38
模板里在foreach里打印global $post;的时候都是,这个字段cover是空值,里数据库里有这个值呀。为啥????
不懂,我是小白。
...全文
323
2
打赏
收藏
精通wordpress的看下,我在表posts加了一个字段cover,但为啥模板调用不出来呢。
模板里在foreach里打印global $post;的时候都是,这个字段cover是空值,里数据库里有这个值呀。为啥???? 不懂,我是小白。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
傲雪星枫
2016-12-26
打赏
举报
回复
看看sql,是否select了这个字段,如果没有,就显示不出啊
看小雪
2016-12-25
打赏
举报
回复
网上有人说需要在F:\web\wordpress3.7\wp-includes\post.php里加上这个字段,但加上似乎也没有用处。
wordpress
数据库_在
WordPress
中使用数据库
wordpress
数据库Out of the box,
WordPress
provides tons of functions that can be used to interact with the database. In most cases, the WP_Query class and related functions such as wp_insert_
post
, ...
wordpress
插件开发_
WordPress
插件
模板
:第2部分:开发插件
wordpress
插件开发In the first part of my series, an introduction to the
WordPress
Plugin Boilerplate, we looked at how the code is organised within the Boilerplate. To continue with this series, we’...
wordpress
api_掌握
WordPress
分类API
wordpress
apiIn a previous SitePoint article, I provided an introduction to the
WordPress
Categories API thanks to the function wp_list_categories(). As we saw, this function is full of different opti...
wordpress
社交系统_如何在
WordPress
中添
加
社交共享按钮(入门指南)
wordpress
社交系统Do you want to add social share buttons in
WordPress
? Social media websites are where people spend a lot of their time on internet. 您是否要在
WordPress
中添
加
社交分享按钮? 人们在...
Kinsta 博客中文翻译(一百三十五)
以下是
WordPress
中可用功能的几个例子,以及它们是如何在代码中被引用的:Kinsta 把我宠坏了,所以我现在要求每个供应商都提供这样的服务。我们还试图通过我们的 SaaS 工具支持达到这一水平。View plans阅读帖子...
PHP
20,397
社区成员
19,656
社区内容
发帖
与我相关
我的任务
PHP
“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
复制链接
扫一扫
分享
社区描述
“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
php
phpstorm
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章