<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[셀렉트박스로 게시물 sorting]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/60860</link>
		<description><![CDATA[<p><strong>1. 정확한 제품 또는 플러그인 이름</strong></p>

<p>default 스킨</p>

<p> </p>

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

<p>list 와 latest 에 셀렉트박스를 만들어서 onchange로 작성된 게시물의 작성날짜의 월 기준으로 게시물을 sorting 하고 싶습니다. 어떻게 해야할까요 ?? ㅠㅠ</p>

<p> </p>

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

default 스킨 기준으로 리스트 우상단에

정렬에 관하여 설정가능한 select 박스가있습...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/60878</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>default 스킨 기준으로 리스트 우상단에</p>

<p>정렬에 관하여 설정가능한 select 박스가있습니다.</p>

<p> </p>

<p>최신글의 경우 목적 자체가 최신글만 보여주는 걸로 설계되어 있어</p>

<p>현재 가변적인 정렬에 관하여는 따로 옵션이 제공되고 있지 않습니다.</p>

<p> </p>

<p>form을 따로 만드셔서 get으로 받아온 뒤</p>

<p>kboard_list_orderby 필터를 활용하여 시도해볼 수 있을 듯 합니다.</p>

<p> </p>

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

<pre>
<code>add_filter('kboard_list_orderby', 'kboard_list_orderby_0818', 10, 3);
function kboard_list_orderby_0818($order, $board_id, $content_list){
	$get_order = isset($_GET['latest_order']) ? sanitize_text_field($_GET['latest_order']) : '';

	if($board_id == '1' &amp;&amp; $content_list-&gt;is_latest){
		if($get_order){
			$order = $get_order;
		}
	}
	return $order;
}</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 18 Aug 2022 05:06:47 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>