질답게시판
질문하기 분류

meta_seo_plugin.php 질문입니다.

컨텐츠 정보

본문

f($meta_post_cottent) {

$view['wr_name'] = $meta_post_cottent['wr_name'];

$view['author'] = $meta_post_cottent['wr_name'];

$post_key = conv_subject(strip_tags($meta_post_cottent['wr_subject'].$meta_post_cottent['wr_content']),150);

$is_meta_author_data = $meta_post_cottent['wr_datetime'];

}


if($board['bo_subject'] || $meta_post_cottent['wr_content']) {

if(!$meta_post_cottent) {

$view['meta_description'] = "{$board['bo_subject']} $site_name > 게시판 > ($page. 페이지)";

} else {

$view['meta_description'] = str_replace("\r\n"," ".$board['bo_subject']." > ",conv_subject($site_name . " > ".strip_tags($meta_post_cottent['wr_content']), 150));

}

if($wr_id == "0" ) { unset($wr_id); } 

$view['meta_canonical'] = $site_url."$bo_table/$wr_id"; // 게시물의 짧은주소 (트래백주소)

}

$keywords = str_replace(array("\r\n","!","@","#","$"," "),",",$deport_key.",".$post_key);

$keywords = str_replace(array(" "),"",$keywords);

$keywords = array_unique(explode(",",$keywords));

$keywords = array_filter(array_map('trim', $keywords));

$keywords = implode(",",$keywords);

$g5_head_title = (!$g5_head_title) ? $site_hellow : $g5_head_title;

$meta_subject = (!$g5_head_title) ? $site_hellow : $g5_head_title;

$meta_title = (!$g5_head_title) ? $site_hellow : $g5_head_title;

$meta_copyright = (!$view['wr_name']) ? $capy_right : $view['wr_name'];

$meta_author = (!$view['wr_name']) ? $capy_rghter : $view['author'];

$meta_keywords = $keywords;

$meta_description = (!$view['meta_description']) ? $site_description.$deport_key : str_replace(array(" ","\r\n"),"",$view['meta_description']);

$meta_distribution = "Global";

$meta_canonical = (!$view['meta_canonical']) ? 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : $view['meta_canonical'];

?>


그누보드 5.4 환경에서


게시물에서


<meta itemprop="description" content="사이트이름이 먼저 나고오, 본문내용이 나오는데 사이트 이름을 안나오게 하고 싶습니다. 

<meta name="keywords" content="여기에도 사이트 키워드 저장한게 나옥나서 본문내용이 먼저 나오는데 바로 본문내용을 키워드로 나오게 하고 싶습니다. 


어떻게 수정해야할지를 모르겠습니다. 도와주세요


관련자료

댓글 4 / 1 페이지
질문하기 804 / 1 페이지
RSS
번호
제목
이름

최근글


새댓글


알림 0