<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[통합검색 썸네일 출력]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/27780</link>
		<description><![CDATA[<p>안녕하세요?</p>

<p>케이보드 잘쓰고있습니다.</p>

<p>현재 twentysixteen테마에서 통합검색할떄 리스트 썸네일이 출력 되도록 하고싶은데</p>

<p>https://www.cosmosfarm.com/threads/document/26741</p>

<p>여길 참고해서 코드를 붙여넣고 안되서 </p>

<p>https://github.com/cosmosfarm/KBoard-wordpress-plugin/blob/master/plugins/kboard/class/KBContent.class.php</p>

<p>여기 소스를 아예 갖다 붙여넣었는데도 안되네요<br />
글 수정해서 썸네일을 다시 로드해도 안되고</p>

<p>&lt;?php twentysixteen_post_thumbnail(); ?&gt;<br />
&lt;?php get_the_post_thumbnail(); ?&gt;</p>

<p>이렇게 두가지로 썸네일 출력을 해도 안되는데</p>

<p>다른 출력함수를 써야하는건가요?</p>

<pre>
<code class="language-php">&lt;?php
/**
 * The template part for displaying results in search pages
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */

?&gt;

&lt;article id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;
	&lt;header class="entry-header"&gt;
		&lt;?php the_title( sprintf( '&lt;h2 class="entry-title"&gt;&lt;a href="%s" rel="bookmark"&gt;', esc_url( get_permalink() ) ), '&lt;/a&gt;&lt;/h2&gt;' ); ?&gt;
	&lt;/header&gt;&lt;!-- .entry-header --&gt;

	&lt;div&gt;&lt;?php twentysixteen_post_thumbnail(); ?&gt;&lt;/div&gt;
	&lt;div&gt;&lt;?php get_the_post_thumbnail(); ?&gt;&lt;/div&gt;

	&lt;?php if ( 'post' === get_post_type() ) : ?&gt;
	

		&lt;footer class="entry-footer"&gt;
			&lt;?php twentysixteen_entry_meta(); ?&gt;
			&lt;?php
				edit_post_link(
					sprintf(
						/* translators: %s: Name of current post */
						__( 'Edit&lt;span class="screen-reader-text"&gt; "%s"&lt;/span&gt;', 'twentysixteen' ),
						get_the_title()
					),
					'&lt;span class="edit-link"&gt;',
					'&lt;/span&gt;'
				);
			?&gt;
		&lt;/footer&gt;&lt;!-- .entry-footer --&gt;

	&lt;?php else : ?&gt;

		&lt;?php
			edit_post_link(
				sprintf(
					/* translators: %s: Name of current post */
					__( 'Edit&lt;span class="screen-reader-text"&gt; "%s"&lt;/span&gt;', 'twentysixteen' ),
					get_the_title()
				),
				'&lt;footer class="entry-footer"&gt;&lt;span class="edit-link"&gt;',
				'&lt;/span&gt;&lt;/footer&gt;&lt;!-- .entry-footer --&gt;'
			);
		?&gt;

	&lt;?php endif; ?&gt;
&lt;/article&gt;&lt;!-- #post-## --&gt;

</code></pre>

<p> </p>

<p>contact-search.php 전문입니다.</p>

<pre>
<code class="language-php">&lt;section id="primary" class="content-area"&gt;
		&lt;main id="main" class="site-main" role="main"&gt;

		&lt;?php if ( have_posts() ) : ?&gt;

			&lt;header class="page-header"&gt;
				&lt;h1 class="page-title"&gt;&lt;?php printf( __( 'Search Results for: %s', 'twentysixteen' ), '&lt;span&gt;' . esc_html( get_search_query() ) . '&lt;/span&gt;' ); ?&gt;&lt;/h1&gt;
			&lt;/header&gt;&lt;!-- .page-header --&gt;

			&lt;?php
			// Start the loop.
			while ( have_posts() ) : the_post();

				/**
				 * Run the loop for the search to   output the results.
				 * If you want to overload this in a child theme then include a file
				 * called content-search.php and that will be used instead.
				 */
				twentysixteen_post_thumbnail(); 
				get_the_post_thumbnail(); 
				get_template_part( 'template-parts/content', 'search' );
				
			// End the loop.
			endwhile;

			// Previous/next page navigation.
			the_posts_pagination( array(
				'prev_text'          =&gt; __( 'Previous page', 'twentysixteen' ),
				'next_text'          =&gt; __( 'Next page', 'twentysixteen' ),
				'before_page_number' =&gt; '&lt;span class="meta-nav screen-reader-text"&gt;' . __( 'Page', 'twentysixteen' ) . ' &lt;/span&gt;',
			) );

		// If no content, include the "No posts found" template.
		else :
			get_template_part( 'template-parts/content', 'none' );

		endif;
		?&gt;

		&lt;/main&gt;&lt;!-- .site-main --&gt;
	&lt;/section&gt;&lt;!-- .content-area --&gt;</code></pre>

<p>search.php 입니다.</p>

<p>답변 부탁드겠습니다.</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요.

현재 KBoard 플러그인에서 게시글 등록 시

워드프레스 포스트 쪽에 카테고리는 별도로 저...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/27803</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>현재 KBoard 플러그인에서 게시글 등록 시</p>

<p>워드프레스 포스트 쪽에 카테고리는 별도로 저장하지 않고 있습니다.</p>

<p>저희도 좋은 방법이 있을지 연구해보겠습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Mon, 26 Nov 2018 00:16:29 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[여기서 추가질문을 해도될지 모르겠네요

카테고리1 도 통합검색창에서 출력하고 싶은데

&amp;lt;?php ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/27786</link>
			<description><![CDATA[<p>여기서 추가질문을 해도될지 모르겠네요</p>

<p>카테고리1 도 통합검색창에서 출력하고 싶은데</p>

<p>&lt;?php echo get_the_category(); ?&gt;</p>

<p>&lt;?php echo $content-&gt;category1?&gt;</p>

<p>둘다 안되네요..</p>

<p>검색해도 안나오긴하는데 혹시 참고할만한 답변글이 있을까요?</p>

<p> </p>]]></description>
			<author>Kt H</author>
			<pubDate>Fri, 23 Nov 2018 10:45:23 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[이런.. 캐시문제였네요 감사합니다.

 ]]></title>
			<link>https://www.cosmosfarm.com/threads/document/27785</link>
			<description><![CDATA[<p>이런.. 캐시문제였네요 감사합니다.</p>

<p> </p>]]></description>
			<author>Kt H</author>
			<pubDate>Fri, 23 Nov 2018 09:59:43 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

코드 적용 후 게시글을 수정해서 썸네일을 다시 등록하신 건지요?

KBoard 게시글 등록 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/27784</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>코드 적용 후 게시글을 수정해서 썸네일을 다시 등록하신 건지요?</p>

<p>KBoard 게시글 등록 또는 수정 시 통합검색 쪽에 썸네일을 등록한 후</p>

<p>테마 쪽에서 get_the_post_thumbnail 함수로 썸네일을 표시할 수 있습니다.</p>

<p>실제 저희 쪽 테스트 서버에 Twenty Sixteen 테마를 설치해서 확인해보니</p>

<p>등록한 썸네일이 통합검색 시 정상적으로 표시되고 있습니다.</p>

<p>다시 수정하신 코드를 확인해보시고 코드 수정 후에는</p>

<p>브라우저의 캐시를 비우신 후에 확인해보시겠어요?</p>

<p>크롬 브라우저에서 강력 새로고침 단축키는 Ctrl + Shift + R 입니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 23 Nov 2018 09:31:35 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>