hrushi9 0 Light Poster

I'm Wordpress beginner. Trying to create plugin "Business Directory Plugin". Need Help to complete code.
How to get information about business listing?
How to get following information,

  1. Business Name
  2. Business Category
  3. Business Description
  4. Business Phone Number
  5. Business Address
  6. Business Email
  7. Business Website, if available
  8. Business State & Business City
  9. Business Image/Photo

    Code

     function register_business_listings() {
    
        $labels = array(
            'name' => _x( 'Business Listings', 'business_listings' ),
            'singular_name' => _x( 'Business Listing', 'business_listings' ),
            'add_new' => _x( 'Add New', 'business_listings' ),
            'add_new_item' => _x( 'Add New Business Listing', 'business_listings' ),
            'edit_item' => _x( 'Edit Business Listing', 'business_listings' ),
            'new_item' => _x( 'New Business Listing', 'business_listings' ),
            'view_item' => _x( 'View Business Listing', 'business_listings' ),
            'search_items' => _x( 'Search Business Listings', 'business_listings' ),
            'not_found' => _x( 'No Business Listings found', 'business_listings' ),
            'not_found_in_trash' => _x( 'No Business Listings found in Trash', 'business_listings' ),
            'parent_item_colon' => _x( 'Parent Business Listing:', 'business_listings' ),
            'menu_name' => _x( 'Business Listings', 'business_listings' ),
        );
    
        $args = array(
            'labels' => $labels,
            'hierarchical' => true,
            'description' => 'Business Listings filterable by category',
            'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes' ),
            'taxonomies' => array( 'categories' ),
            'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'menu_position' => 5,
            'menu_icon' => 'dashicons-book-alt',
            'show_in_nav_menus' => true,
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite' => true,
            'capability_type' => 'post'
        );
    
        register_post_type( 'business_listings', $args );
    }
    
    add_action( 'init', 'register_business_listings' );
    
        function categories_taxonomy() {
            register_taxonomy(
                'categories',
                'business_listings',
                array(
                    'hierarchical' => true,
                    'label' => 'categories',
                    'query_var' => true,
                    'rewrite' => array(
                        'slug' => 'categories',
                        'with_front' => false
                    )
                )
            );
    }
    add_action( 'init', 'categories_taxonomy');
    
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.