admin管理员组文章数量:1425240
Sorry if this sounds like a newbie question. However, I am currently building a site and I am using a plugin called SportSpress and they create some custom post types in the there plugin. I am Wondering is there away I can find out what data or fields they are using so I can create a form on the front end to allow users to update?
Sorry if this sounds like a newbie question. However, I am currently building a site and I am using a plugin called SportSpress and they create some custom post types in the there plugin. I am Wondering is there away I can find out what data or fields they are using so I can create a form on the front end to allow users to update?
Share Improve this question asked Jun 21, 2019 at 20:33 Mark IvanowskiMark Ivanowski 11 Answer
Reset to default 0Have a look at the database. There are only two places to store data for a post type. Let’s assume the post type is called FRANK have a look at the wp_posts table and run
SELECT * FROM wp_posts WHERE post_type = ‘FRANK’
The second place to store data is the wp_postmeta table. Use one of the IDs (e.g. 9999 in this example) you received in previous statement and use it in this query to get all meta fields for this post
SELECT *
FROM wp_postmeta
WHERE post_id=9999
You can also combine both with a JOIN but in my opinion it’s easier to understand like that
本文标签: pluginsReading Custom Post data so I can have user update Manually
版权声明:本文标题:plugins - Reading Custom Post data so I can have user update Manually 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745379712a2656102.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论