R
R
RNB2016-01-31 16:03:56
PHP
RNB, 2016-01-31 16:03:56

Wordpress - how (or where to read) new tables and links are made?

I have never worked with WP, all my sites were made based on MVC frameworks.
Now I am making a site based on WP, but not just a blog, but a little more complicated.
Let's take it as an example. I would like to display on the site and edit in the admin panel: Cars and link them to Car Dealers.
In any site based on MVC, a table Cars, Car Dealers and Car Dealers_Cars is created (acts as a link), classes are created to work with these entities, etc. I think the point is clear.
Question: tell me what this is called in the WP world. I'm sure it exists.
But a little confused. It seems like new entities are created as new post_types. How are connections made? And what are the table naming conventions? Or will he create the tables himself?
I would be grateful for an answer, what is it all called, and if you throw a link for an example, then in general there will be no limit to my joy.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mr Crabbz, 2016-01-31
@Realnewbie

Create a custom post type (via the Custom Post Type UI plugin) "Cars".
Next, in the same place, create and link the taxonomy "Car dealerships" to the previously created posttype.
Well, when filling the cars, you will have a box with Salons, where you can mark the necessary ones with a checkbox.
What to read? - Custom post types, Custom taxonomies, Advanced Custom Fields, ACF Relation Field and so on.

I
imdeveloper, 2016-02-01
@link_web

I recommend pods field type wordpress plugin. Very flexible. Connections can be made in a two-way direction. The same can be written in the functions.php file, but it will take time. This plugin just solves your problem and recently has a REST API. Good luck

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question