<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[글쓰기 후 이동페이지 카테고리별로 다르게 설정하는 방법]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/62653</link>
		<description><![CDATA[<p><strong>1. 정확한 제품 또는 플러그인 이름</strong></p>

<p>케이보드 컨텍트폼 게시판</p>

<p> </p>

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

<p>게시글 작성(글쓰기) 후 이동할 페이지는 아래 코드로 설정할 수 있는 걸로 압니다. </p>

<p>한 게시판에서 작성한 글의 카테고리마다 다른 페이지로 이동하게 설정할 수도 있나요?</p>

<pre>
<code class="language-php">add_filter('kboard_after_executing_url', 'my_kboard_after_executing_url', 10, 3);
function my_kboard_after_executing_url($next_page_url, $content_uid, $board_id){
	if($board_id == '1'){
		$next_page_url = '페이지주소1';
	}
	
	if($board_id == '2'){
		$next_page_url = '페이지주소2';
	}
	
	if($board_id == '3'){
		$next_page_url = '페이지주소3';
	}
	return $next_page_url;
}</code></pre>

<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[감사합니다. 아래 코드로 잘 적용했습니다!


add_filter('kboard_after_executing_url', 'my_kboard_af...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/62733</link>
			<description><![CDATA[<p>감사합니다. 아래 코드로 잘 적용했습니다!</p>

<pre>
<code class="language-php">add_filter('kboard_after_executing_url', 'my_kboard_after_executing_url', 10, 3);
function my_kboard_after_executing_url($next_page_url, $content_uid, $board_id){
	$kb_content = new KBContent();
	$content    = $kb_content-&gt;initWithUID($content_uid);
	if($board_id == '1'){
		if($content-&gt;option-&gt;tree_category_1 == 'AAA'){
			$next_page_url = '이동링크1';
		}
		else if($content-&gt;option-&gt;tree_category_1 == 'BBB'){
			$next_page_url = '이동링크2';
		}
	}
	return $next_page_url;
}</code></pre>

<p> </p>]]></description>
			<author>워드프레스웹사이트 </author>
			<pubDate>Thu, 12 Jan 2023 00:51:31 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[계층형 카테고리의 경우 옵션에 적용되어 있습니다.


$content-&amp;gt;option-&amp;gt;tree_category_...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/62711</link>
			<description><![CDATA[<p>계층형 카테고리의 경우 옵션에 적용되어 있습니다.</p>

<pre>
<code>$content-&gt;option-&gt;tree_category_1</code></pre>

<p>카테고리 부분을 위와 같이 변경하여 적용해보시겠어요?</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Wed, 11 Jan 2023 05:22:08 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[계층형 카테고리의 경우 아래와 같이 설정하는게 맞을까요?

이렇게 설정하니까 모든 카테고리가 가장 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/62675</link>
			<description><![CDATA[<p>계층형 카테고리의 경우 아래와 같이 설정하는게 맞을까요?</p>

<p>이렇게 설정하니까 모든 카테고리가 가장 첫 if문에 설정한 페이지주소1로 이동하네요 ㅜㅜ</p>

<pre>
<code class="language-php">add_filter('kboard_after_executing_url', 'my_kboard_after_executing_url', 10, 3);
function my_kboard_after_executing_url($next_page_url, $content_uid, $board_id){
	$kb_content = new KBContent();
	$content    = $kb_content-&gt;initWithUID($content_uid);
	if($board_id == '16'){
		if($content-&gt;tree-category == 'AAA'){
			$next_page_url = '페이지주소1';
		}
	}
	else if($board_id == '16'){
		if($content-&gt;tree-category == 'BBB'){
			$next_page_url = '페이지주소2';
		}
	}
	return $next_page_url;
}</code></pre>

<p> </p>

<p>혹시나 싶어</p>

<p>아래와 같이 if문을 고쳐보았는데도 모두 페이지주소1로 이동합니다.ㅠㅠ</p>

<pre>
<code class="language-php">add_filter('kboard_after_executing_url', 'my_kboard_after_executing_url', 10, 3);
function my_kboard_after_executing_url($next_page_url, $content_uid, $board_id){
	$kb_content = new KBContent();
	$content    = $kb_content-&gt;initWithUID($content_uid);
	if($board_id == '16'){
		if($content-&gt;tree-category == 'AAA'){
			$next_page_url = '페이지주소1';
		}
		else if($content-&gt;tree-category == 'BBB'){
			$next_page_url = '페이지주소2';
		}
	}
	return $next_page_url;
}</code></pre>

<p> </p>]]></description>
			<author>워드프레스웹사이트 </author>
			<pubDate>Mon, 09 Jan 2023 01:04:21 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

아래 예제 코드를 참고하여 적용해보시겠어요?


add_filter('kboard_after_executing_u...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/62660</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>아래 예제 코드를 참고하여 적용해보시겠어요?</p>

<pre>
<code>add_filter('kboard_after_executing_url', 'my_kboard_after_executing_url', 10, 3);
function my_kboard_after_executing_url($next_page_url, $content_uid, $board_id){
	$kb_content = new KBContent();
	$content    = $kb_content-&gt;initWithUID($content_uid);
	if($board_id == '1'){
		if($content-&gt;category1 == 'AAA'){
			$next_page_url = '페이지주소1';
		}
	}
	else if($board_id == '2'){
		if($content-&gt;category1 == 'BBB'){
			$next_page_url = '페이지주소1';
		}
	}
	else if($board_id == '3'){
		if($content-&gt;category1 == 'CCC'){
			$next_page_url = '페이지주소1';
		}
	}
	return $next_page_url;
}</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 06 Jan 2023 07:36:57 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>