<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[KBoard 작성자 이름 변경]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/56052</link>
		<description><![CDATA[안녕하세요.<br />
<br />
다름이 아니라, 제가 계정 이름을 바꿨음에도 기존 KBoard에 업로드한 글의 작성자 이름은 변하지가 않더라고요.<br />
혹시 기존에 업로드한 작성자명도 현재 계정 이름으로 수정할 수 있는 방법이 있을까요?<br />
<br />
기존 계정 이름 : 마인즈그라운드<br />
현재 계정 이름 : 관리자<br />
<br />
*정리하자면 마인즈그라운드로 되어 있는 작성자명을 현재 계정이름인 관리자로 전부 변경하고 싶습니다.<br />
<br />
사진첨부합니다.<br />
https://imgur.com/d3Jtvu5]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

KBoard 플러그인에서 작성자명은 워드프레스 공개적으로 표시할 이름을 활용하고 있습니...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/56058</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>KBoard 플러그인에서 작성자명은 워드프레스 <strong>공개적으로 표시할 이름</strong>을 활용하고 있습니다.</p>

<p>워드프레스 관리자 -&gt; 사용자 -&gt; 나의 프로필 페이지에서</p>

<p>공개적으로 표시할 이름 설정이 display_name입니다.</p>

<p>워드프레스는 공개적으로 표시할 이름을 아이디, 닉네임, 이메일 등으로 선택해서 사용할 수 있도록 되어있습니다.</p>

<p> </p>

<p>작성자명은 공개적으로 표시할 이름이 바뀌더라도 기존의 작성자명으로 표시됩니다.</p>

<p>만약, 공개적으로 표시할 이름이 바뀔 때 기존 작성자명도 바뀌게 하시려면</p>

<p>아래의 코드를 추가해보세요.</p>

<pre>
<code class="language-php">add_filter('kboard_user_display', 'kboard_user_display_20211028', 10, 5);
function kboard_user_display_20211028($user_display, $user_id, $user_name, $plugin, $builder){
	$board = $builder-&gt;board;
	if($user_id &amp;&amp; $board-&gt;id == '1'){ // 실제 게시판 id로 적용해주세요.
		$user = new WP_User($user_id);
		$user_display = $user-&gt;display_name;
	}

	return $user_display;
}</code></pre>

<p>위의 코드에서 $board-&gt;id == '1' 부분은 실제 게시판 id로 적용해주세요.</p>

<p>테마의 functions.php 파일에 코드를 추가하거나 <a href="https://ko.wordpress.org/plugins/code-snippets/" target="_blank">Code Snippets</a> 플러그인을 사용해서 코드를 추가할 수 있습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 28 Oct 2021 00:19:29 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>