Php 为什么我的wordpress媒体上传器不工作?

Php 为什么我的wordpress媒体上传器不工作?,php,wordpress,upload,media,custom-theme,Php,Wordpress,Upload,Media,Custom Theme,我正在从一个客户端(wordpress)做一些自定义主题。我刚刚决定,这是在编写代码时学习的最好方法之一……为基于项目的学习万岁!。问题是,当我尝试将一些图像上传到帖子时,即使是从functions.php,我也可以添加主题支持(“帖子缩略图”);我在“编辑后”菜单中看到了该选项。我无法上传任何东西。media galley从未上传过一些预览(我在测试其他主题(如17主题或其他主题)时成功上传了这些预览,效果非常好) 另外,我不确定我是否做对了孩子的父母。这可能是问题所在吗?还是目录路径问题 以

我正在从一个客户端(wordpress)做一些自定义主题。我刚刚决定,这是在编写代码时学习的最好方法之一……为基于项目的学习万岁!。问题是,当我尝试将一些图像上传到帖子时,即使是从functions.php,我也可以添加主题支持(“帖子缩略图”);我在“编辑后”菜单中看到了该选项。我无法上传任何东西。media galley从未上传过一些预览(我在测试其他主题(如17主题或其他主题)时成功上传了这些预览,效果非常好)

另外,我不确定我是否做对了孩子的父母。这可能是问题所在吗?还是目录路径问题

以下是一些照片:

my functions.php代码
如果这有助于查看我的目录,请提供一些屏幕截图

希望任何一个正面临或曾经面临类似问题的人都能帮助我解决这个问题。我将非常感激;)

此外,我还在本地与mamp pro合作

谢谢

my functions.php code 


<?php
/* 
    * Theme Functions
    
*/

function fic_StylesTemplate(){
    wp_enqueue_style('main_style', get_template_directory_uri(). '/css/style.css', array(),'1.0.0', 'all');
    wp_enqueue_style('calling_bootstrap', get_template_directory_uri(). '/boostrap-folder/bootstrap.css', array(), '1.0.0', 'all');
    wp_enqueue_style('fonts_google_pack1', '//fonts.googleapis.com/css?family=Montserrat:400,600,700,800&display=swap');
    wp_enqueue_style('font_google_pack2','//fonts.googleapis.com/css2?family=Raleway:wght@400;500&display=swap');
    wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js', array( 'jquery' ),'',true );
    wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js', array( 'jquery' ),'',true );
    wp_enqueue_script( 'boot3','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array( 'jquery' ),'',true );

}
add_action('wp_enqueue_scripts', 'fic_StylesTemplate'); // el primer parametreo ; que tipo de instruccion le estamos dando; pero el segundo nombre no importa

function fic_Default(){
    
    add_theme_support('title-tag');
    add_theme_support('menus');
    add_theme_support( 'post-thumbnails');
    add_image_size('blog-size-default', 100, 100, true);
    add_theme_support(
        'post-formats',
        array(
            'aside',
            'image',
            'video',
            'quote',
            'link',
            'gallery',
            'audio',
        )
    );
    add_theme_support(
        'html5',
        array(
            'comment-form',
            'comment-list',
            'gallery',
            'caption',
            'script',
            'style',
        )
    );

    

    
    
    
   
    
}


add_action('after_setup_theme','fic_Default');

?>