返信先: Smart Custom Fieldsが原因でアイキャッチ画像が設定できない
フォーラム › バグ報告 › Smart Custom Fieldsが原因でアイキャッチ画像が設定できない › 返信先: Smart Custom Fieldsが原因でアイキャッチ画像が設定できない
2022年10月22日 6:37 PM
#98755
Konoha
参加者
ikel 様
横から失礼します。
もしかしたら…
add_action('smart-cf-before-editor-enqueue-scripts','fix_sfc_media');
function fix_sfc_media($hook){
global $post;
if($hook == 'welcart-shop_page_usces_itemedit'){
wp_enqueue_media(array( 'post' => $post->ID ));
}else{
wp_enqueue_media();
}
}
これをfunctions.phpに入れてみてください。
もしかすると動くかもしれません。
(動かなかったらスミマセン…)