상품명이 안나와요 채택완료
비밀친구
9년 전
조회 1,811
테스트 홈피에서는 상품명이 잘 나왔는데 본 홈피에서는 상품명이 안나옵니다
테스트 홈피 : http://mini.freehome.kr/shop-main/" target="_self">mini.freehome.kr/shop-main
본 홈피 : http://minirobot.co.kr/shop_main/" target="_self">minirobot.co.kr/shop_main


댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
9년 전
다른 플러그인하고 충돌이 일어나는 것 같습니다.
플러그인들을 하나 하나씩 꺼보시고, 무슨 플러그인하고 충돌이 일어나는지 확인하는 수 밖에 없습니다.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 3개
�
비밀친구
9년 전
t
thisgun
9년 전
아래 코드를 해당 테마 functions.php 또는 다른 적당한 곳에 넣어 보세요.
add_filter('the_title', 'custom_gnucommerce_item_title', PHP_INT_MAX, 2 );
function custom_gnucommerce_item_title($title, $id){
global $post;
if( !$title && is_post_type_archive( GC_NAME ) && isset($post->post_title) ){
$title = $post->post_title;
}
return $title;
}
add_filter('the_title', 'custom_gnucommerce_item_title', PHP_INT_MAX, 2 );
function custom_gnucommerce_item_title($title, $id){
global $post;
if( !$title && is_post_type_archive( GC_NAME ) && isset($post->post_title) ){
$title = $post->post_title;
}
return $title;
}
�
비밀친구
9년 전
소스를 해당 테마 funtions.php에 넣었더니 먹통이 되어버리네요 ㅠㅠ
다시 확인 부탁드립니다
다시 확인 부탁드립니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
플러그인을 똑같이 해도 안바뀌네요