2017-12-18 1 views
0

경고 : /customers/3/3/f/mabox-ks.com/httpd.www/web1/wp-content/plugins에 숫자가 아닌 값이 있습니다. 라인 206amy_templates.php 줄에 숫자가 아닌 값이 있습니다. 209

여기 amy_temaplates.php 에 /ab_ct_amy_slider/inc/amy_templates.php 것은 내가 코드를 가지고 있도록 COMPLET 코드

$post->the_permalink = get_permalink($post->id); 
     global $product; 
     if(isset($product)){ 
      $post->get_price_html = $product->get_price_html(); 
      $post->get_rating_html = $product->get_rating_html(); 
      $post->the_permalink = get_permalink($post->id); 
      $post->add_to_cart_url = $product->add_to_cart_url(); 
      $post->get_sku = $product->get_sku(); 
      $post->is_purchasable = $product->is_purchasable() ? 'add_to_cart_button' : ''; 
      $post->product_type = $product->product_type; 
      $post->add_to_cart_text = $product->add_to_cart_text(); 
      $post->get_categories = $product->get_categories(', ', '<span class="posted_in">' . _n('Category:', 'Categories:', sizeof(get_the_terms($post->id, 'product_cat')), 'woocommerce') . ' ', '.</span>');        
     } 
     $posts[] = $post; 
    } 
+0

오류는 206 행이 아니라 209 행에 있습니다. 그리고 변수 이름으로 $ post를 사용하면 정말 혼란 스럽습니다, Wordpress $ post는 다소 비쌉니다. –

+0

죄송합니다. *이 오류를 해결하기 위해 무엇을 변경해야합니까? –

답변

0

선 여기 209

$post->the_permalink = get_permalink($post->id); 

의 코드이며 이렇게 나는 단지 광고한다. ded //

   $post->custom_max_width = get_post_meta(get_the_ID(), 'custom_amy_slide_max_width', true); 
     // $post->custom_margin = $post->custom_max_width/2*-1; 
      $post->shortcodes_custom_css = get_post_meta(get_the_ID(), '_wpb_shortcodes_custom_css', true); 
     } 

그리고 작동합니다. 어쨌든 고마워요

관련 문제