admin管理员组

文章数量:1316008

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.

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
Add a comment  | 

1 Answer 1

Reset to default 0

Why 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