admin管理员组文章数量:1391937
I'm new to Wordpress development. I want to create a stock portfolio management section on my site. In the admin panel I want to create a portfolio, enter stocks, what price they're purchased at, and track the latest price of those stocks, generating portfolio return statistics and so forth.
But I'm not sure the Wordpress-acceptable way of doing this. I know how to create settings forms and so on, but this doesn't seem to fit into that approach.
I'm new to Wordpress development. I want to create a stock portfolio management section on my site. In the admin panel I want to create a portfolio, enter stocks, what price they're purchased at, and track the latest price of those stocks, generating portfolio return statistics and so forth.
But I'm not sure the Wordpress-acceptable way of doing this. I know how to create settings forms and so on, but this doesn't seem to fit into that approach.
Share Improve this question asked Feb 28, 2020 at 20:44 devbananadevbanana 1534 bronze badges 1- 2 Welcome to WPSE. I would recommend looking into custom post types. WP makes it very easy to create your own types of data. An example from WP core is the custom post type 'page' which differentiates between blog posts, and static page content. – jdm2112 Commented Feb 28, 2020 at 20:51
1 Answer
Reset to default 1Welcome!
As the comment from jdm2112 says, WordPress has the ability for you to create Custom Post Types. You can also make custom taxonomies, custom fields, and more. If you're new to this, then I would recommend you check out Generate WP as a resource. I find it's a great tool for getting a handle on what's possible.
Make your CPT There are many plugins that can help you do this, but it is very easy to create your own.
If you need to get an idea of what that looks like, head over to the WP post type generator and play around with it for a bit. Once you feel like you've got a handle on it, you can add it to your theme functions.php, or even better, make your own plugin (my personal recommendation).
Add Custom Fields You can make your own meta boxes as well, but I actually recommend ACF for this. Their pricing for Pro has gone up considerably, but their product is pretty dang amazing.
I hope that helps get you started. CPT and ACF are my WP bread and butter.
本文标签: pluginsWhat is the Wordpress approach to custom data
版权声明:本文标题:plugins - What is the Wordpress approach to custom data? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744706067a2620850.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论