• hi.
    i want to change a php site to wordpress.
    should i change any field of tables or entity to a custom post type and meta data?
    for example in an order table
    order become cpt and payment date become a meta data?
    and should we create a class for any table?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    To the extent practical, try to conform your data to the default WP schema, so yes, post objects of some sort with associated meta data. It is possible to have custom data tables, but then you’d need to develop your own UI to manage the data.

    Whether you write your PHP code procedurally or OOP is up to you. If you can successfully convert your data to fit the WP schema, there may not be much other coding required.

    Thread Starter majidazad

    (@majid20)

    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘database table field’ is closed to new replies.