(I have some experience creating WordPress themes but no experience in extending WordPress functionality. I’m sure this must be a very common question, but I don’t know how to search for the answer. All I could find is how to create custom menu items.)

How can I create custom object types / entities in the database, like

  • Team members, i.e. an entry for each team member of the company
  • Reference projects, i.e. an entry for each project the company has done

In the admin panel, it looks like this:

enter image description here

For each object type, I want to define what properties they have (title, name, description, notes, image 1, image 2).

How can I do that? For what keywords should I search?

1
1

I think what you want is to create what WorpPress calls “Custom Post Types”.
Please have a look at the Post Type page in the Codex that explains what Post Types are and how to create custom ones.

Basically, here is the code to create the Object custom post type :

add_action( 'init', 'create_post_type' );
function create_post_type() {
  register_post_type( 'object',
    array(
      'labels' => array(
        'name' => __( 'Objects' ),
        'singular_name' => __( 'Object' )
      ),
    'public' => true,
    'has_archive' => true,
    )
  );
}

A side note : in your screenshot, the WordPress version seams very old (3.3 or something). Please Upgrade to the latest version to take advantage of the new features.

Leave a Reply

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