Title: database table field
Last modified: February 20, 2021

---

# database table field

 *  [majidazad](https://wordpress.org/support/users/majid20/)
 * (@majid20)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/database-table-field/)
 * 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](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/database-table-field/#post-14079087)
 * 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](https://wordpress.org/support/users/majid20/)
 * (@majid20)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/database-table-field/#post-14079689)
 * thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘database table field’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [majidazad](https://wordpress.org/support/users/majid20/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/database-table-field/#post-14079689)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
