테스트 홈피에서는 상품명이 잘 나왔는데 본 홈피에서는 상품명이 안나옵니다
테스트 홈피 : mini.freehome.kr/shop-main
본 홈피 : minirobot.co.kr/shop_main


|
답변 3개 / 댓글 4개
채택된 답변
+20 포인트
다른 플러그인하고 충돌이 일어나는 것 같습니다.
플러그인들을 하나 하나씩 꺼보시고, 무슨 플러그인하고 충돌이 일어나는지 확인하는 수 밖에 없습니다.
답변에 대한 댓글 3개
아래 코드를 해당 테마 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;
}
답변을 작성하려면 로그인이 필요합니다.
플러그인을 똑같이 해도 안바뀌네요