简体   繁体   English

在 Wordpress 中创建自定义帖子类型

[英]create custom post types in Wordpress

I have the portfolio plugin where i am showcasing my products in wordpress but now i want to allow the admin to add the product title,content,multiple images and categories from frontend in html form how can i save my details to custom portfolio So that once uploaded i can display the product.我有投资组合插件,我在 wordpress 中展示我的产品,但现在我想允许管理员以 html 形式从前端添加产品标题、内容、多个图像和类别如何将我的详细信息保存到自定义投资组合中,以便一次上传我可以显示产品。

so here i am using AccessPress Anonymous Post plugin and designed the html form but while submitting the form will be directly saved into default WordPress post but i wanted the post to be directly saved into custom portfolio所以在这里我使用 AccessPress Anonymous Post 插件并设计了 html 表单,但是在提交表单时将直接保存到默认的 WordPress 帖子中,但我希望将帖子直接保存到自定义组合中

Is that possible and if true how can I do that?这是可能的,如果是真的,我该怎么做?

Use a plugin to do this.使用插件来做到这一点。

You can use the excellent Contact Form 7 plugin along with the Post My CF7 Form extension plugin which will allow you to save any custom forms to a custom post, including images as featured attachments, custom meta fields and select/checkbox/radio inputs as taxonomies.您可以使用出色的Contact Form 7插件和 Post My CF7 Form 扩展插件,这将允许您将任何自定义表单保存到自定义帖子,包括作为特色附件的图像、自定义元字段和选择/复选框/单选输入作为分类法.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM