<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[베스트 게시판에서의 검색 문제]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/26048</link>
		<description><![CDATA[<p>안녕하세요.</p>

<p>아래 블로그를 참고해서 베스트 게시판을 만들었는데요.</p>

<p><a href="https://blog.naver.com/chan2rrj/221292384251">https://blog.naver.com/chan2rrj/221292384251</a></p>

<p> </p>

<p>베스트 게시판에서 글 노출은 원하는 대로 매우 잘되는데 하단에 검색 기능이 동작을 하지 않고 있습니다.</p>

<p>해결 방법이 있다면 도움 부탁드립니다.</p>

<p> </p>

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

실제 적용한 코드는 어떻게 되시는지요?

올려주신 링크에서 월간 베스트 게시판의 코드...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/26060</link>
			<description><![CDATA[<p>안녕하세요~^^</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){
	$keyword = kboard_keyword();
	$target = kboard_target();
	
	if($board_id == '1'){ // 실제 적용될 게시판의 ID값으로 변경해주세요.
		$date = date('Ym01000000', current_time('timestamp')); // 이번달 시작 날짜 기준
		if($keyword){
			$keyword = "%{$keyword}%";
			if($target){
				$where = "`date`&gt;='{$date}' AND `{$target}` LIKE '{$keyword}' AND `parent_uid`='0' AND `notice`='' AND (`status`='' OR `status` IS NULL OR `status`='pending_approval')";
			}
			else{
				$where = "`date`&gt;='{$date}' AND (`title` LIKE '{$keyword}' OR `content` LIKE '{$keyword}' OR `member_display` LIKE '{$keyword}') AND `parent_uid`='0' AND `notice`='' AND (`status`='' OR `status` IS NULL OR `status`='pending_approval')";
			}
		}
		else{
			$where = "`date`&gt;='{$date}' AND `parent_uid`='0' AND `notice`='' AND (`status`='' OR `status` IS NULL OR `status`='pending_approval')";
		}
	}
	
	return $where;
}</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Mon, 03 Sep 2018 02:56:49 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>