How one category can have different fields?

The very very rough guess at what data architecture for it might look in WordPress would be:

  • hotel is a Custom Post Type (individual items of something)
  • city is a term of custom taxonomy (group of items)
  • stars and similar data are custom fields (specific data attached to items)

However there are numerous nuances in all of this, which is WP development essentially consists of. 🙂

WP also isn’t particularly helpful about building UIs for custom things. Taxonomies more or less have UI provided, but with custom fields you are mosly on your own. On other hand there are dozens of third party frameworks around that aim to help with building out just that.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)