Posts stores in the posts table regardless of its custom types. There is no way to store custom posts in the separate tables. However, you can JOIN any tables using post_id field. But that will be your custom SQL queries. You can built that queries with filters for main Query, for instance. Check out here: https://codex.ww.wp.xz.cn/Custom_Queries
Thread Starter
dbonev
(@dbonev)
Thanks a lot Gioni!
I was thinking to load the information in both the WordPress tables and in my custom. Maybe it will be the solution in the end.
So is there some another way to use WordPress integrated functionality with Custom Tables?
Best Regards,
Dimitar!
Sorry, I didn’t realize you. Please, explain your needs.
With Filters and Action you can do almost everything with posts data and data displayed in frontend or dashboard. That’s really powerful tools. Note that WP itself doesn’t contain any tools to work with your tables. But it has wpdb class https://codex.ww.wp.xz.cn/Class_Reference/wpdb. Using it with Filters and Action can help you solve any tasks.
Thread Starter
dbonev
(@dbonev)
Thanks again!
I understand that you didn’t realize me. I’m a startupper with WordPress 🙂 . But after all I’ve found solution for my problem.
I’ll just do what you say in your first post 🙂 . It works great. I can rewrite WordPress rows in my custom tables. Or just use them and mine tables with JOIN.
Best regards,
Dimitar!