I am working on Drupal CMS, and Drupal is really grate and hard, and now I am going to learn WordPress.

Drupal let users to create different content-type, and each content-type can be different type of input or textarea and etc…

for example I have a sport website I can define lots of input[s] and let my editor or user to enter everything what he want, (just for Example) These are the field what I need in drupal:

filed-sport-title (text)
filed-sport-summery (textarea)
field-text-en (textarea)
field-text-translate-fa (textarea)
field-text-subject (radio button)
field-text-images (file > image > number of needed image or unlimited)
field-sport-reference (text)
field-sport-tags (taxonomy)

But I think: in WordPress I should enter all of top field in one editor (WordPress editor). Is this right?

Is there anyway to creating field in WordPress?

2 Answers
2

Yes there are lot of ways you can achieve this by using plugin or pragmatically

This Plugin will create custom content types as well as custom fields for specific content type:
https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/

However you can also do this via pragmatically:
http://code.tutsplus.com/tutorials/a-guide-to-wordpress-custom-post-types-creation-display-and-meta-boxes–wp-27645

You can also check these functions from WordPress Codex which can be helpfull for custom content types and custom fields:

  1. register_post_type This function will add content type for you.
  2. add_meta_box This function can be use for adding multiple
    fields for specific content types.
  3. save_post This function can be used for saving custom fields in
    database.

Leave a Reply

Your email address will not be published. Required fields are marked *