Answer the question
In order to leave comments, you need to log in
How to organize content structure in WordPress for car catalog?
Hello!
Experienced advice on organizing content storage on the site is required. The task is to make a database of cars based on WordPRess. But not simple, but storing a range of data for each model of technology. The difficulty arose at the stage of creating a structure for storing materials.
What needs to be done:
1. Directory structure: All equipment - Type of equipment (car, truck, etc.) - Car model (audi, bmw)
2. Each model of equipment should have its own page, which accumulates materials for a specific model auto.
3. Users have the ability to view materials on a specific model of equipment.
4. Powerful search throughout this case (ajax, interactive and search at all levels of pagination).
What I already did:
1. Created a new Post Type - technique. In this section, I can add a new technique as a new article (which is not the right thing).
2. Created different Taxonomy such as Brand, Type of equipment, etc. to sort articles.
3. Created custom fields for articles.
After all the actions, problems and questions appeared:
1. As I understand it, I will need to create as many categories as I have different models of equipment
2. After that, I add new materials associating them with the desired Category (model of equipment)
3. How to add my own options for category? If the category page is going to be a model page, then you need to have a number of fields for the category, is that possible?
4. Is there any more efficient alternative to the structure I came up with?
I can master a project of good complexity, I know layout and basic PHP, but I encounter difficulties with organizing the structure for the first time. I work seriously with WordPress for the first time, before that I dealt only with commercial CMS.
Answer the question
In order to leave comments, you need to log in
The structure is basically normal, and to add parameters you need to install the advanced custom fields plugin, this plugin has flexible settings for adding the necessary fields for different categories
In my opinion, the smaller the data (more detailed), the better. The first two points from "already done" are correct. That is, I would make a Post Type "technique", in which there is a bunch of Taxonomy to describe the technique according to different parameters. Further, in the "articles" I would make one Taxonomy reference to the "technique".
It turns out, for example: in the "technique" we create a car (manufacturer, model, various characteristics (some characteristics with fields for selecting several values \u200b\u200bat once, for example, in what colors it is presented on the market), etc.), then in the "article" I would choose from a list of which car the article is about.
Further, navigation would be done as a search, and not as a category. That is, by clicking on the BMW button, we scroll through the search for articles and display everything with the BMW manufacturer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question