<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>functions - 픽셀디자인 - 워드프레스 &amp; 반응형앱 제작전문</title>
	<atom:link href="https://www.picell.biz/category/functions/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.picell.biz</link>
	<description>반응형웹 워드프레스제작 전문 에이전시 - 여러분의 웹사이트를 효율적으로 제작하여 더 나은 이용자 경험을 제공하는 웹앱과 하이브리드앱을 제작합니다. “모바일과 데스크탑 모두에서 최상의 이용자 경험을 제공하는 웹앱과 하이브리드앱을 함께 만들어봅시다!”</description>
	<lastBuildDate>Fri, 26 Jun 2026 00:53:01 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.picell.biz/wp-content/uploads/2025/04/25y_picell_favicon.svg</url>
	<title>functions - 픽셀디자인 - 워드프레스 &amp; 반응형앱 제작전문</title>
	<link>https://www.picell.biz</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">41583857</site>	<item>
		<title>기본갤러리 페이지생성</title>
		<link>https://www.picell.biz/%ea%b8%b0%eb%b3%b8%ea%b0%a4%eb%9f%ac%eb%a6%ac-%ed%8e%98%ec%9d%b4%ec%a7%80%ec%83%9d%ec%84%b1/</link>
					<comments>https://www.picell.biz/%ea%b8%b0%eb%b3%b8%ea%b0%a4%eb%9f%ac%eb%a6%ac-%ed%8e%98%ec%9d%b4%ec%a7%80%ec%83%9d%ec%84%b1/#respond</comments>
		
		<dc:creator><![CDATA[adminarctx]]></dc:creator>
		<pubDate>Tue, 14 Jun 2016 07:01:27 +0000</pubDate>
				<category><![CDATA[functions]]></category>
		<guid isPermaLink="false">https://www.picell.biz/devlog/?p=26</guid>

					<description><![CDATA[<p>워드프레스 기본갤러리에는 페이지기능이 없습니다. 아래코드는 기본갤러리에 컬럼, 페이지당 사진수와 페이지네비게이션을 생성합니다. [php] add_filter(&#8216;post_gallery&#8217;, &#8216;filter_gallery&#8217;, 10, 2); function filter_gallery($output, $attr) { global $post; //GALLERY SETUP STARTS HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-// if (isset($attr[&#8216;orderby&#8217;])) { $attr[&#8216;orderby&#8217;]...</p>
<p>The post <a href="https://www.picell.biz/%ea%b8%b0%eb%b3%b8%ea%b0%a4%eb%9f%ac%eb%a6%ac-%ed%8e%98%ec%9d%b4%ec%a7%80%ec%83%9d%ec%84%b1/">기본갤러리 페이지생성</a> first appeared on <a href="https://www.picell.biz">픽셀디자인 - 워드프레스 & 반응형앱 제작전문</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>워드프레스 기본갤러리에는 페이지기능이 없습니다.</p>
<p>아래코드는 기본갤러리에 컬럼, 페이지당 사진수와 페이지네비게이션을 생성합니다.</p>
[php]
<p>add_filter(&#8216;post_gallery&#8217;, &#8216;filter_gallery&#8217;, 10, 2); function filter_gallery($output, $attr) { global $post; //GALLERY SETUP STARTS HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-// if (isset($attr[&#8216;orderby&#8217;])) { $attr[&#8216;orderby&#8217;] = sanitize_sql_orderby($attr[&#8216;orderby&#8217;]); if (!$attr[&#8216;orderby&#8217;]) unset($attr[&#8216;orderby&#8217;]); } //print_r($attr); extract(shortcode_atts(array( &#8216;order&#8217; =&gt; &#8216;ASC&#8217;, &#8216;orderby&#8217; =&gt; &#8216;menu_order ID&#8217;, &#8216;id&#8217; =&gt; $post-&gt;ID, &#8216;itemtag&#8217; =&gt; &#8216;dl&#8217;, &#8216;icontag&#8217; =&gt; &#8216;dt&#8217;, &#8216;captiontag&#8217; =&gt; &#8216;dd&#8217;, &#8216;columns&#8217; =&gt; 3, &#8216;size&#8217; =&gt; &#8216;large&#8217;, &#8216;include&#8217; =&gt; &#8221;, &#8216;exclude&#8217; =&gt; &#8221; ), $attr)); $id = intval($id); if (&#8216;RAND&#8217; == $order) $orderby = &#8216;none&#8217;; if (!empty($include)) { $include = preg_replace(&#8216;/[^0-9,]+/&#8217;, &#8221;, $include); $_attachments = get_posts(array(&#8216;include&#8217; =&gt; $include, &#8216;post_status&#8217; =&gt; &#8216;inherit&#8217;, &#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;, &#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217;, &#8216;order&#8217; =&gt; $order, &#8216;orderby&#8217; =&gt; $orderby)); $attachments = array(); foreach ($_attachments as $key =&gt; $val) { $attachments[$val-&gt;ID] = $_attachments[$key]; } } if (empty($attachments)) return &#8221;; //GALLERY SETUP END HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;// //PAGINATION SETUP START HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-// $current = (get_query_var(&#8216;paged&#8217;)) ? get_query_var( &#8216;paged&#8217; ) : 1; $per_page = 24; //$offset = ($page-1) * $per_page; $offset = ($current-1) * $per_page; $big = 999999999; // need an unlikely integer $total = sizeof($attachments); $total_pages = round($total/$per_page); if($total_pages &lt; ($total/$per_page)) { $total_pages = $total_pages+1; } //PAGINATION SETUP END HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-// //GALLERY OUTPUT START HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;// $output = &#8221;</p>
<p>n&#8221;; $output = &#8221;<br />
&lt;ul class=&#8221;&amp;quot;gallery-images-grid&amp;quot;&#8221;&gt;<br />
&lt;ul class=&#8221;&amp;quot;gallery-images-grid&amp;quot;&#8221;&gt;n&#8221;; $counter = 0; $pos = 0; foreach ($attachments as $id =&gt; $attachment) { $pos++; //$img = wp_get_attachment_image_src($id, &#8216;medium&#8217;); //$img = wp_get_attachment_image_src($id, &#8216;thumbnail&#8217;); $img = wp_get_attachment_image_src($id, &#8216;full&#8217;); if(($counter &lt; $per_page)&amp;&amp;($pos &gt; $offset)) { $counter++; $largetitle = get_the_title($attachment-&gt;ID); $largeimg = wp_get_attachment_image_src($id, &#8216;full&#8217;); $img = wp_get_attachment_image_src($id, array(100,100)); $output .= &#8221;<br />
 	&lt;li&gt;&lt;a title=&#8221;&amp;quot;{$largetitle}&amp;quot;&#8221; href=&#8221;&amp;quot;{$largeimg[0]}&amp;quot;&#8221; data-lightbox=&#8221;&amp;quot;example-set&amp;quot;&#8221;&gt;&lt;img src=&#8221;&amp;quot;{$largeimg[0]}&amp;quot;&#8221; alt=&#8221;&amp;quot;&amp;quot;&#8221; width=&#8221;&amp;quot;{$largeimg[1]}&amp;quot;&#8221; height=&#8221;&amp;quot;{$largeimg[2]}&amp;quot;&#8221; /&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/ul&gt;<br />
n&#8221;; } } $output .= &#8221;</p>
<p>n&#8221;; $output .= &#8221;</p>
<p>n&#8221;; $output .= &#8221;</p>
<p>n&#8221;; //GALLERY OUTPUT ENDS HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;// //PAGINATION OUTPUT START HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-// //$output = &#8221; n&#8221;; $output .= paginate_links( array( &#8216;base&#8217; =&gt; str_replace($big,&#8217;%#%&#8217;,esc_url(get_pagenum_link($big))), &#8216;format&#8217; =&gt; &#8216;?paged=%#%&#8217;, &#8216;current&#8217; =&gt; $current, &#8216;total&#8217; =&gt; $total_pages, &#8216;prev_text&#8217; =&gt; __(&#8216;«&#8217;), &#8216;next_text&#8217; =&gt; __(&#8216;»&#8217;) ) ); //$output .= &#8221; n&#8221;; //PAGINATION OUTPUT ENDS HERE&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-// return $output; } //}</p>
[/php]<p>The post <a href="https://www.picell.biz/%ea%b8%b0%eb%b3%b8%ea%b0%a4%eb%9f%ac%eb%a6%ac-%ed%8e%98%ec%9d%b4%ec%a7%80%ec%83%9d%ec%84%b1/">기본갤러리 페이지생성</a> first appeared on <a href="https://www.picell.biz">픽셀디자인 - 워드프레스 & 반응형앱 제작전문</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.picell.biz/%ea%b8%b0%eb%b3%b8%ea%b0%a4%eb%9f%ac%eb%a6%ac-%ed%8e%98%ec%9d%b4%ec%a7%80%ec%83%9d%ec%84%b1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">26</post-id>	</item>
		<item>
		<title>Woocommerce Soldout Text(Badge) on products listing</title>
		<link>https://www.picell.biz/woocommerce-soldout-textbadge-on-products-listing/</link>
					<comments>https://www.picell.biz/woocommerce-soldout-textbadge-on-products-listing/#respond</comments>
		
		<dc:creator><![CDATA[adminarctx]]></dc:creator>
		<pubDate>Wed, 20 Jan 2016 02:18:43 +0000</pubDate>
				<category><![CDATA[functions]]></category>
		<category><![CDATA[wc plugins]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">https://www.picell.biz/devlog/?p=11</guid>

					<description><![CDATA[<p>[php] add_action( &#8216;woocommerce_before_shop_loop_item_title&#8217;, function() { global $product;if ( !$product-&#38;gt;is_in_stock() ) { echo &#8216;&#38;lt;span class=&#38;quot;onsale soldout&#38;quot;&#38;gt;Sold Out&#38;lt;/span&#38;gt;&#8217;; } }); [/php] Woocoommerce Loop 템플릿에 직접 삽입 할수도 있다.   WooCommerce Sold Out...</p>
<p>The post <a href="https://www.picell.biz/woocommerce-soldout-textbadge-on-products-listing/">Woocommerce Soldout Text(Badge) on products listing</a> first appeared on <a href="https://www.picell.biz">픽셀디자인 - 워드프레스 & 반응형앱 제작전문</a>.</p>]]></description>
										<content:encoded><![CDATA[<div class="crayon-toolbar">
<div class="crayon-tools">
<div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers">
[php]
<p>add_action( &#8216;woocommerce_before_shop_loop_item_title&#8217;, function() {<br />
global $product;if ( !$product-&amp;gt;is_in_stock() ) {<br />
echo &#8216;&amp;lt;span class=&amp;quot;onsale soldout&amp;quot;&amp;gt;Sold Out&amp;lt;/span&amp;gt;&#8217;;<br />
}<br />
});</p>
[/php]
</div>
<p>Woocoommerce Loop 템플릿에 직접 삽입 할수도 있다.</p>
<hr>
<p> </p>
</div>
<h4>WooCommerce Sold Out Products</h4>
<div class="crayon-tools">
<p><a href="https://wordpress.org/plugins/woocommerce-sold-out-products/" target="_blank" rel="noopener">플러그인</a></p>
</div>
</div><p>The post <a href="https://www.picell.biz/woocommerce-soldout-textbadge-on-products-listing/">Woocommerce Soldout Text(Badge) on products listing</a> first appeared on <a href="https://www.picell.biz">픽셀디자인 - 워드프레스 & 반응형앱 제작전문</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.picell.biz/woocommerce-soldout-textbadge-on-products-listing/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">29438</post-id>	</item>
		<item>
		<title>Woocommerce Grouped Product Images</title>
		<link>https://www.picell.biz/woocommerce-grouped-product-images/</link>
					<comments>https://www.picell.biz/woocommerce-grouped-product-images/#respond</comments>
		
		<dc:creator><![CDATA[adminarctx]]></dc:creator>
		<pubDate>Wed, 20 Jan 2016 01:55:04 +0000</pubDate>
				<category><![CDATA[functions]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">https://www.picell.biz/devlog/?p=4</guid>

					<description><![CDATA[<p>그룹상품 제품 이미지 [php] add_action&#60;/span&#62;&#60;span class="pun"&#62;(&#60;/span&#62; &#60;span class="str"&#62;'woocommerce_grouped_product_list_before_price'&#60;/span&#62;&#60;span class="pun"&#62;,&#60;/span&#62; &#60;span class="str"&#62;'woocommerce_grouped_product_thumbnail'&#60;/span&#62; &#60;span class="pun"&#62;);&#60;/span&#62; &#60;span class="kwd"&#62;function&#60;/span&#62;&#60;span class="pln"&#62; woocommerce_grouped_product_thumbnail&#60;/span&#62;&#60;span class="pun"&#62;(&#60;/span&#62;&#60;span class="pln"&#62; $product &#60;/span&#62;&#60;span class="pun"&#62;)&#60;/span&#62; &#60;span class="pun"&#62;{&#60;/span&#62;&#60;span class="pln"&#62; $image_size &#60;/span&#62;&#60;span class="pun"&#62;=&#60;/span&#62;&#60;span class="pln"&#62; array&#60;/span&#62;&#60;span...</p>
<p>The post <a href="https://www.picell.biz/woocommerce-grouped-product-images/">Woocommerce Grouped Product Images</a> first appeared on <a href="https://www.picell.biz">픽셀디자인 - 워드프레스 & 반응형앱 제작전문</a>.</p>]]></description>
										<content:encoded><![CDATA[<h3>그룹상품 제품 이미지</h3>
<pre class="lang-php prettyprint prettyprinted"><code><span class="pln">
[php]
add_action&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt; &lt;span class="str"&gt;'woocommerce_grouped_product_list_before_price'&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt; &lt;span class="str"&gt;'woocommerce_grouped_product_thumbnail'&lt;/span&gt; &lt;span class="pun"&gt;);&lt;/span&gt;

&lt;span class="kwd"&gt;function&lt;/span&gt;&lt;span class="pln"&gt; woocommerce_grouped_product_thumbnail&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt; $product &lt;/span&gt;&lt;span class="pun"&gt;)&lt;/span&gt; &lt;span class="pun"&gt;{&lt;/span&gt;&lt;span class="pln"&gt;
    $image_size &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; array&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt; &lt;span class="lit"&gt;20&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt; &lt;span class="lit"&gt;20&lt;/span&gt; &lt;span class="pun"&gt;);&lt;/span&gt;  &lt;span class="com"&gt;// array( width, height ) image size in pixel &lt;/span&gt;&lt;span class="pln"&gt;
    $attachment_id &lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="pln"&gt; get_post_meta&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt; $product&lt;/span&gt;&lt;span class="pun"&gt;-&gt;&lt;/span&gt;&lt;span class="pln"&gt;id&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt; &lt;span class="str"&gt;'_thumbnail_id'&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt; &lt;span class="kwd"&gt;true&lt;/span&gt; &lt;span class="pun"&gt;);&lt;/span&gt;
    &lt;span class="pun"&gt;?&gt;&lt;/span&gt;
    &lt;span class="pun"&gt;&lt;&lt;/span&gt;&lt;span class="pln"&gt;td &lt;/span&gt;&lt;span class="kwd"&gt;class&lt;/span&gt;&lt;span class="pun"&gt;=&lt;/span&gt;&lt;span class="str"&gt;"label"&lt;/span&gt;&lt;span class="pun"&gt;&gt;&lt;/span&gt;
        &lt;span class="pun"&gt;&lt;?&lt;/span&gt;&lt;span class="pln"&gt;php echo wp_get_attachment_image&lt;/span&gt;&lt;span class="pun"&gt;(&lt;/span&gt;&lt;span class="pln"&gt; $attachment_id&lt;/span&gt;&lt;span class="pun"&gt;,&lt;/span&gt;&lt;span class="pln"&gt; $image_size &lt;/span&gt;&lt;span class="pun"&gt;);&lt;/span&gt; &lt;span class="pun"&gt;?&gt;&lt;/span&gt;
    &lt;span class="pun"&gt;&lt;/&lt;/span&gt;&lt;span class="pln"&gt;td&lt;/span&gt;&lt;span class="pun"&gt;&gt;&lt;/span&gt;
    &lt;span class="pun"&gt;&lt;?&lt;/span&gt;&lt;span class="pln"&gt;php&gt;

}

[/php]
</span></code></pre><p>The post <a href="https://www.picell.biz/woocommerce-grouped-product-images/">Woocommerce Grouped Product Images</a> first appeared on <a href="https://www.picell.biz">픽셀디자인 - 워드프레스 & 반응형앱 제작전문</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.picell.biz/woocommerce-grouped-product-images/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">29440</post-id>	</item>
	</channel>
</rss>
