New answers tagged

0

You have to add more than one setting. Change $wp_customize->add_setting( 'img-upload' ); to two unique settings. i.e. img-upload-1, img-upload-2. Then call the settings in your code.


0

I guess you wanted to enqueue all the files in your css and js directory of your theme. Thats the reason you are trying to use the scandir(). get_template_directory_uri() returns URL not the directory path. You need to use get_template_directory() for directory. If you wanted to do that, then do it in functions.php function enqueue_all_front_resources(){ ...



Top 50 recent answers are included