<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[페이지당 보여질 게시글 갯수 설정]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/63042</link>
		<description><![CDATA[<p><strong>1. 정확한 제품 또는 플러그인 이름</strong></p>

<p>KBoard 플러그인</p>

<p> </p>

<p><strong>2. 상세 내용</strong></p>

<p>유저페이지에서 드랍다운으로 사용자가 한 페이지에서 볼 게시글의 갯수를 조절하는 기능을 만들고 싶습니다.</p>

<p>KBContentList.class.php의 getList함수 내에서 $offset은 찾았는데요</p>

<p>이를 변경할 수 있는 hook이 보이지 않습니다.</p>

<p>index.php의 kboard_builder에서도 setRpp에 개발자가 관여할 수 있는 hook이 안보입니다.</p>

<p>혹시 Core를 변경하지 않고 구현할 수 있는 방법이 있을까요?</p>

<p> </p>

<p><strong>3. 확인 가능한 상세 페이지 주소</strong></p>

<p> </p>

<p> </p>

<p><strong>4. 수정한 코드 내역 (있다면)</strong></p>

<p> </p>

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

kboard/class/KBContentList.class.php 파일 내에서

rpp함수를 찾아


$this-&amp;gt;r...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/63052</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>kboard/class/KBContentList.class.php 파일 내에서</p>

<p>rpp함수를 찾아</p>

<pre>
<code>$this-&gt;rpp = $rpp;
</code></pre>

<p>부분을</p>

<pre>
<code>$this-&gt;rpp = apply_filters('kboard_list_rpp', $rpp, $this-&gt;board_id, $this);</code></pre>

<p>처럼 변경해보시겠어요?</p>

<p> </p>

<p>해당 필터의 사용 예제는 아래와 같이 사용하실 수 있습니다.</p>

<pre>
<code>add_filter('kboard_list_rpp', function($rpp, $board_id, $content_list){
	$new_rpp = isset($_GET['rpp']) ? intval($_GET['rpp']) : 0;
	if($board_id == 1 &amp;&amp; $new_rpp){
		return $new_rpp;
	}
	
	return $rpp;
}, 10, 3);</code></pre>

<p> </p>

<p>위 업데이트는 <a href="https://github.com/cosmosfarm/KBoard-wordpress-plugin" target="_blank">kboard git 버전</a>에 업데이트 되었습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 03 Feb 2023 02:23:17 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>