How one category can have different fields?

I am new in WordPress but before I worked with Drupal and it is different and I am a little confusing now.

I am going to make a website for a travel agency, and one of the categories that they have is hotel. That is list of hotels that should sort by name of cities. then when I click on one city's link, they want to show the list of hotels of that city sort by their rating.

I really don't know a lot about WordPress and I get confusing, and I don't know what should I do.

I want to have a category that is about hotels, and let the editor of website to post a hotel and fill out some different fields about hotel. fields like stars, city, country, address ...

In Drupal, that was easier by views, but I like to learn WordPress and the website should be in WordPress. In Drupal it is really easy to add custom fields

Please show me a way and I need your help

Solutions

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.

Similar questions

How can I have two different urls for the same page that load two different templates?
I have the following page: http://liquidchurch.com/messages/ It appears fine on desktop and mobile web. I'm working on a mobile app and using a web view to encapsulate the page within the app. Problem is I don't want the header/footer to be part of the page when it is viewed in the mobile app, but I do want them to be visible when using either desk...
Can I have different SSL certificates for different subdomains?
My company has a SSL certificate for *.mycompany.com. We use this certificate for many critical services. Marketing team owns www.mycompany.com website (WordPress) and wants a SSL certificate for it. Can we issue a specific certificate for www.mycompany.com?
Wordpress Advanced Custom Fields display two fields from two different post types in one template
I have two post types. I need to display content from each within the same loop. At the moment, I can call the 'releases' post type to display content, but I also need to call the 'artists' post type to display some content in the same DIV. The below line breaks the page with a ‘Catchable fatal error: Object of class WP_Post could not be converted ...
How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am trying. Basically I am building a site that has different components: Blog, News and Gallery, they are all items in the menu. I am trying to have diffe...
Can a separate WordPress (same server) get posts from an existing one, but have different settings?
When developing WordPress themes for a site with a large amount of posts, how can I dynamically pull existing post data from the live version of the site onto my testing site? I already know about WordPress's export feature, but that's one-and-done, not dynamically queried. Is there an easier way or existing solution to avoid rewriting WordPress sy...
Advance Custom Fields - All fields from one field group in one frontent array?
I must stres out that i’m not a developer so i might use some “unsupported” terms :). Ok the issue, i have created custom post type called Firm. Also i have created field group with 7 fields (text fields mainly, including website URL field and Google map field) and i have made template that displays those fields on frontend page. Once it’s saved al...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.