Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在wordpress管理面板上创建新表单?_Wordpress - Fatal编程技术网

如何在wordpress管理面板上创建新表单?

如何在wordpress管理面板上创建新表单?,wordpress,Wordpress,我想在wordoress管理面板上为管理员存储数据创建新表单,例如,我有一个学生详细信息,我想通过管理面板存储 请让我知道 最好的 阿披舍克你为什么不创建一个新的帖子类型 您可以将其设置为不公开显示。你可以这样做: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'la

我想在wordoress管理面板上为管理员存储数据创建新表单,例如,我有一个学生详细信息,我想通过管理面板存储

请让我知道

最好的
阿披舍克

你为什么不创建一个新的帖子类型

您可以将其设置为不公开显示。你可以这样做:

add_action( 'init', 'create_post_type' );
function create_post_type() {
    register_post_type( 'acme_product',
        array(
            'labels' => array(
                'name' => __( 'Products' ),
                'singular_name' => __( 'Product' )
            ),
        'public' => false,
        'has_archive' => true,
        )
    );
} 

你为什么不创建一个新的帖子类型呢

您可以将其设置为不公开显示。你可以这样做:

add_action( 'init', 'create_post_type' );
function create_post_type() {
    register_post_type( 'acme_product',
        array(
            'labels' => array(
                'name' => __( 'Products' ),
                'singular_name' => __( 'Product' )
            ),
        'public' => false,
        'has_archive' => true,
        )
    );
}