• Resolved dbonev

    (@dbonev)


    Hallo, WordPress users!

    I’m WordPress startupper and would like to know is there some way to use custom post types with my custom database tables OR is there some effective way, to use custom tables with WordPress functionality?

    Best Regards,

    Dimitar!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.www.ads-software.com/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.www.ads-software.com/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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom post types And Custom tables’ is closed to new replies.