Adding wordpress comments to custom table in wordpress

I am creating a plugin in wordpress which will have two custom tables,Category and City tables.

I want to use wordpress comments functionality for commenting on each particular city.
Custom post would have solved the problem but cities table have large data as well as many attributes.

Read More

There any way user can add wordpress comments on cities.

Related posts

Leave a Reply

1 comment

  1. Because you aren’t basing your new City object off of a WordPress Custom Post Type, you will have to write your own code to handle it. I would suggest having a city_comments table to store those comments separately. (Re-using the WP comments table would be ugly and cause you a bunch of grief).