<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[월간 베스트 게시판 오류]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/61398</link>
		<description><![CDATA[<p>안녕하세요!</p>

<p>월간 베스트 게시판을 만들었습니다.<br />
게시판 #1의 글들 중에서 추천수 1이상 되는 게시글들을 게시판 #2에 자동 등록되도록 만들었는데요,<br />
<br />
게시판 #2에서 글을 누르면 '이 게시글은 이동되었습니다.' 라는 메시지가 뜨며 글이 보이지 않습니다. (<a href="https://share.cleanshot.com/PY8h28">https://share.cleanshot.com/PY8h28</a>)</p>

<p>정상적으로 베스트 게시판의 글을 눌렀을 때 해당 게시글이 보이도록 하려면 어떻게 해야 하나요?</p>

<p> </p>

<p>아래와 같이 코드를 작성하였습니다.</p>

<pre>
<code class="language-php">add_filter('kboard_list_where', 'month_best_kboard_list_where', 10, 3);
function month_best_kboard_list_where($where, $board_id, $content_list){
	
	if($board_id == '2'){ // 실제 적용될 게시판의 ID값으로 변경해주세요.
		$date = date('Ym01000000', current_time('timestamp')); // 이번달 시작 날짜 기준
		
		$where = "`date`&gt;='{$date}' AND `parent_uid`='0' AND `notice`='' AND (`status`='' OR `status` IS NULL OR `status`='pending_approval') AND `vote` &gt;= 1";
	}
	
	return $where;
}

add_filter('kboard_list_orderby', 'month_best_kboard_list_orderby', 10, 3);
function month_best_kboard_list_orderby($orderby, $board_id, $content_list){
	
	if($board_id == '2'){ // 실제 적용될 게시판의 ID값으로 변경해주세요.
		$orderby = "`vote` DESC, `date` DESC"; // 조회수와 추천수를 더한 값을 기준으로 정렬 
	}
	
	return $orderby;
}</code></pre>

<p> </p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

게시글의 보안과 관련된 기능 때문입니다.

유사한 내용의 문의글들이 커뮤니티에 여럿 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/61410</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>게시글의 보안과 관련된 기능 때문입니다.</p>

<p>유사한 내용의 문의글들이 커뮤니티에 여럿 있습니다.</p>

<p> </p>

<p>아래의 링크들을 참고하여 적용해보시겠어요?</p>

<p><a href="https://www.cosmosfarm.com/threads/document/36839" target="_blank">https://www.cosmosfarm.com/threads/document/36839</a></p>

<p><a href="https://www.cosmosfarm.com/threads/document/35910" target="_blank">https://www.cosmosfarm.com/threads/document/35910</a></p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Tue, 04 Oct 2022 04:28:37 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>