wordpress – add a custom admin section with fields for name, address, city,state, and photo upload

Hi What you need to do is add some code to your functions.php file within your theme..

ie: register_post_type()

this will generate a new area under the likes of media on your admin menu..
the way you set this up, will depend on what is enabled and visible on the post write/edit pages..

for instance this is a copy paste from a theme file i have, this generates a new video post type,

add_action( 'init', 'register_videos_post_type' );

function register_videos_post_type() {
    register_post_type( 'videos',
        array(
            'labels' => array(
                'name' => __( 'Videos' ),
                'singular_name' => __( 'Video' ),
                'add_new' => __( 'Add New' ),
                'add_new_item' => __( 'Add New Video' ),
                'edit' => __( 'Edit' ),
                'edit_item' => __( 'Edit Video' ),
                'new_item' => __( 'New Video' ),
                'view' => __( 'View Video' ),
                'view_item' => __( 'View Video' ),
                'search_items' => __( 'Search Videos' ),
                'not_found' => __( 'No videos found' ),
                'not_found_in_trash' => __( 'No videos found in Trash' ),
                'parent' => __( 'Parent Video' ),
            ),
            'public' => true,
            'show_ui' => true,
            'publicly_queryable' => true,
            'show_in_nav_menus' => false,
            'exclude_from_search' => false,
            'hierarchical' => false,
            'rewrite' => array('slug'=>'video'),
            'supports' => array('title', 'editor', 'excerpt', 'thumbnail', 'comments', 'author'),
            'taxonomies' => array('post_tag')
        )
    );
flush_rewrite_rules();
}

this will enable a whole new video post type, which supports:

array('title', 'editor', 'excerpt', 'thumbnail', 'comments', 'author'),

have a read through the register_post_type()

hope this helps..

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