This question already has answers here: How to make a list of companies' information and display them to user, using custom post types and a custom taxonomy? (2 answers) Closed 4 years ago.admin管理员组文章数量:1316008
I want to add a list of companies' information to my website and I want to display the list in a page. Then by clicking on each company, user can see more information about that company in its individual page.
What is the right approach for doing this? I researched about custom post types and custom fields. But they seem to be not right for me. Do I have to build a post for each company? They are more than a hundred. Is there a more speedy way to do this?
P.S The companies has identical fields. Each company has a name, description, etc and also has a few photos.
This question already has answers here: How to make a list of companies' information and display them to user, using custom post types and a custom taxonomy? (2 answers) Closed 4 years ago.I want to add a list of companies' information to my website and I want to display the list in a page. Then by clicking on each company, user can see more information about that company in its individual page.
What is the right approach for doing this? I researched about custom post types and custom fields. But they seem to be not right for me. Do I have to build a post for each company? They are more than a hundred. Is there a more speedy way to do this?
P.S The companies has identical fields. Each company has a name, description, etc and also has a few photos.
Share Improve this question asked Nov 14, 2020 at 16:44 Davood KazemiDavood Kazemi 31 silver badge6 bronze badges 4- Does this answer your question? What is a good CPT plugin to make a list of companies in my website? – Wacław Jacek Commented Nov 14, 2020 at 17:14
- No, I'm not sure. Here, I actually revised my previous question with better language and added new information, So that answerers can help me better. Thanks anyway. – Davood Kazemi Commented Nov 14, 2020 at 17:21
- @DavoodKazemi stop reposting the same question – Tom J Nowell ♦ Commented Nov 14, 2020 at 17:56
- Sorry for being a bother. It wasn't intentional. – Davood Kazemi Commented Nov 14, 2020 at 18:15
1 Answer
Reset to default 0Why do you think a custom post type would not work here? Is there anything about custom post types that you think does not fit your preferred structure?
The way I would go about this would be to:
- Define a custom post type, e.g. Company.
- For each non-title and non-description field, store the data as a custom post meta.
You can use the brilliant Advanced Custom Fields plugin to set up the custom fields quickly.
If the data entry is your concern, you could export the data into a CSV file and programmatically import the data or use a plugin to do this. Here is a list of plugins that you can use from WordPress's support docs.
本文标签: custom post typesRight way to store a large set of similar information on website
版权声明:本文标题:custom post types - Right way to store a large set of similar information on website? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741994842a2409834.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论