前提・実現したいこと
Wordpressでカートシステムのwelcartを利用中です。
Welcart Version 1.9.10
発生している問題・エラーメッセージ
問題点は、いつの頃からか不明ですが、新規投稿をする際にタブやメディアボタンが効かなくて困っています。
投稿や更新ボタンは正常。
エラーメッセージ
Notice: Undefined variable: post in、、、functions.php on line 100
Notice: Undefined offset: 0 in、、、template_func.php on line 505
該当のソースコード
php
ソースコード
functions.php)
```ここに言語を入力
add_action('wp_head','insert_json_ld');
function insert_json_ld (){
if (is_single()) {
if (have_posts()) : while (have_posts()) : the_post();
$context = 'http://schema.org';
$type = 'Product';
$name = get_the_title();
$description = get_bloginfo('description');
$image = get_the_post_thumbnail_url( get_the_ID(), 'medium' );
$logo = 'http://monemuu.com/wp-content/uploads/2017/10/monemuu_facelogo.jpg';
$url = get_permalink();
$context = 'http://schema.org';
$offertype = 'Offer';
100⇒ $price = usces_the_firstPrice( 'return', $post );
$priceCurrency = 'JPY';
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー template_func.php) ```ここに言語を入力 function usces_the_firstPrice( $out = '', $post = NULL ) { global $usces; if($post == NULL) global $post; $post_id = $post->ID; $skus = $usces->get_skus( $post_id ); 505⇒ $price = apply_filters( 'usces_filter_the_first_price', $skus[0]['price'], $post_id, $skus, $out ); if($out == 'return'){ return $price; }else{ echo number_format($price); } }
試したこと
デバッグモードにしてみると上記のエラーが出ていた。
ボタンやタブが反応しないことで、いくつかのプラグイン停止などやってみた。
補足情報
ボタンやタブが反応しないことは、このエラーとは関係ないかもしれませんが、放っておくわけにもいかないので解決策を模索しています。
とにかく、ボタンやタブが反応しないと記事を書くのに不自由極まりないのでなんとか解決したいのです。
1)エラーコードからくる解決のヒント
2)ワードプレスの投稿画面にあるボタンやタブの機能しないことへの解決策
以上、お手数ですが教えてくださいますでしょうか?
よろしくお願いいたします。
回答4件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/17 07:10