<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[مەکۆکانی وێبچن - بەکارهێنانى Post Formats + هێنانى پەڕگە لە ڕووکار..]]></title>
		<link>https://www.webchin.org/Meko/viewtopic.php?id=32253</link>
		<atom:link href="https://www.webchin.org/Meko/extern.php?action=feed&amp;tid=32253&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[دواترین و نوێترین په‌یامه‌كان له‌ بەکارهێنانى Post Formats + هێنانى پەڕگە لە ڕووکار...]]></description>
		<lastBuildDate>Sat, 02 Aug 2014 18:06:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[وه‌ڵام: بەکارهێنانى Post Formats + هێنانى پەڕگە لە ڕووکار..]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=252925#p252925</link>
			<description><![CDATA[<p>زۆر سوپاس کاک هەڵکەوت&nbsp; .... ڕاستى بەتەواوى لێت تێنەگەشتم واتە چۆن؟ مەبەستت ئەوەیە کە بتوانى بۆ هەر هاوپۆلێک بەشێوازێک دەرى بخەى؟</p>]]></description>
			<author><![CDATA[null@example.com (Pshtiwan_95)]]></author>
			<pubDate>Sat, 02 Aug 2014 18:06:08 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=252925#p252925</guid>
		</item>
		<item>
			<title><![CDATA[وه‌ڵام: بەکارهێنانى Post Formats + هێنانى پەڕگە لە ڕووکار..]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=252922#p252922</link>
			<description><![CDATA[<p>ئەو دەستە ماندوبوانەت ئەگوشم <br />زۆر حوانت رون کردۆتەوە <br />وە شتێکیی تر جیا کردنەوەیی کاتگیۆریی هەمان فکرە نییە , من زانیاریم لەسەریی نییە ..؟</p>]]></description>
			<author><![CDATA[null@example.com (halkawt mahdi)]]></author>
			<pubDate>Sat, 02 Aug 2014 13:20:47 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=252922#p252922</guid>
		</item>
		<item>
			<title><![CDATA[بەکارهێنانى Post Formats + هێنانى پەڕگە لە ڕووکار..]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=252918#p252918</link>
			<description><![CDATA[<p><strong>بسم الله الرحمن الرحیم</strong><br />پەنا بە خودا لەم بابەتە باسى تایبەتمەندیەکى بنچینەىى ڕووکار دەکەم ئەویش بەکارهێنانى Post Formats (بە کوردى جۆرى بابەت).. ئەم تایبەتمەندیە لە وەشانى ٣.١ بۆ وۆردپرێس ناساندرا....مەبەست لێى زیادکردنى شێوازێکە بۆ بابەت بەوەى کە وینەیە, میوسیکە, ویدیۆیە, ووتەیە یان هەرشتێکى تر ... ئاسایىى چەند دانەیەکى هەیە لەم وێنەیەى خوارەوەدا دیارە..<br /><span class="postimg"><img src="http://www.webchinupload.com/f/2014-08/c3d2bc537c99a4f3526edd13386ce1a9.png" alt="http://www.webchinupload.com/f/2014-08/c3d2bc537c99a4f3526edd13386ce1a9.png" /></span><br />ئەوەانەى سەرەوە ئەکەوێتە سەر ئارەزووزى تۆ کە کامیان بەکاربهێنى... بۆ زیادکردنى شوێنى بابەت نووسین و شوێنى دروستکردنى پەڕە ئەوا لە ڕیگاى ئەم چەند دانە کۆدەى خوارەوە کە بۆ پەڕگەى (functions.php) زیاد ئەکەى .. تکایە لەسەرەتاى پەڕکە زیادیان بکە<br /></p><div class="codebox"><pre><code data-language=php>// add post-formats to post_type &#039;post&#039;
add_theme_support(&#039;post-formats&#039;,array(&#039;aside&#039;,&#039;gallery&#039;,&#039;link&#039;,&#039;image&#039;,&#039;quote&#039;,&#039;status&#039;,&#039;video&#039;,&#039;audio&#039;,&#039;chat&#039;));
// add post-formats to post_type &#039;page&#039;
add_post_type_support( &#039;page&#039;, &#039;post-formats&#039; );</code></pre></div><p>کامیانت ویست لە (array) بیهێڵەوە... زنیارى لەسەر ئەو جۆرانەى هەن ... پیویست ناکات بکرێن بە کوردى وەک مانگى ڕۆشن مانایان دیارە <img src="https://www.webchin.org/Meko/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> ...<br /></p><div class="codebox"><pre><code data-language=php>aside - Typically styled without a title. Similar to a Facebook note update.
gallery - A gallery of images. Post will likely contain a gallery shortcode and will have image attachments.
link - A link to another site. Themes may wish to use the first &lt;a href=””&gt; tag in the post content as the external link for that post. An alternative approach could be if the post consists only of a URL, then that will be the URL and the title (post_title) will be the name attached to the anchor for it.
image - A single image. The first &lt;img /&gt; tag in the post could be considered the image. Alternatively, if the post consists only of a URL, that will be the image URL and the title of the post (post_title) will be the title attribute for the image.
quote - A quotation. Probably will contain a blockquote holding the quote content. Alternatively, the quote may be just the content, with the source/author being the title.
status - A short status update, similar to a Twitter status update.
video - A single video. The first &lt;video /&gt; tag or object/embed in the post content could be considered the video. Alternatively, if the post consists only of a URL, that will be the video URL. May also contain the video as an attachment to the post, if video support is enabled on the blog (like via a plugin).
audio - An audio file. Could be used for Podcasting.
chat - A chat transcript, like so:</code></pre></div><p><strong>بەکارهێنان : </strong><br />بەکارهێنانى چەند شیوەیەک دەگرێتەوە کە ..<br /><strong>یەکەمیان</strong> : ئەتوانیت واى لێبکەیت وەک ئەوەى لە ڕووکارى Twenty Twelve ـى سەرەکى هەیە کە لە پەڕەى سەرەتا دا سوودى لە جۆرى بابەتەکان بینوە بە جۆریک بۆ هەریەێکیان بەشێوەیەک ڕیکخستنى بۆ کردووە.. واتە ئەو بابەتى کە جۆرەکەى image بەشێوەیەک دەردەکەوێ وە جۆرەکانى تریش هەر یەکە و بە جۆرێکى تر.... بۆ سوود بین لەو جۆرە ئیمە کار لەگەڵ Loop ـى سەرەکى ئەکەین کە بۆ بانگکردنى بابەتەکان فەنکشنى get_template_part بەکار ئەهێنین... دواتر زانیارى تەواو لەسەر ئەو ئەدەم... ئەمەى خوارەوە شێوەیەکە لە Loop ـى پەڕەى سەرەتا کە جۆرى جیاوازى بابەتەکانى لێ بانگراوە... ئێستا لەو چەند دێرە کۆدە ناگەیت تا لەسەر فەنکشنى get_template_part نە خوێنیتەوە...</p><div class="codebox"><pre><code data-language=php>&lt;?php if ( have_posts() ) : ?&gt;
 
    &lt;?php /* Start the Loop */ ?&gt;
    &lt;?php while ( have_posts() ) : the_post(); ?&gt;
        &lt;?php get_template_part( &#039;content&#039;, get_post_format() ); ?&gt;
    &lt;?php endwhile; ?&gt;
&lt;?php endif; // end have_posts() check ?&gt;</code></pre></div><p>تێبینى // ئێستا لیرە ئەوە دەخەمەڕوو هەرچەندە کە پەیوەندى بە فەنکشنى get_template_part ... دواى ئەوەى کە کۆدەکەى سەرەوەت بەکارهێنا ئەبێت ئەو پەڕگانە لە نیو ڕووکارەکەت هەبن.. لە نیو هەریەکەشیان کۆدى پێویست نووسرابێت...<br /></p><div class="codebox"><pre><code data-language=php>content.php
content-image.php
content-aside.php
content-{other types...}.php</code></pre></div><p><strong>دووەمیان</strong> : بەکارهێنانیەتى لە نێو بابەت یان پەڕە هەردووکى بەیەک شێوە ئەکرێ ئەڵبەتە لیرەش هەر کار لەگەڵ Loop ـى سەرەکى ئەکەین .. دیسانەوە هەمان بیرۆکەى خاڵى یەکەمە تەنیا ئەوەندەیە کارەکان لە نێو پەڕگەى single.php ـە..<br /></p><div class="codebox"><pre><code data-language=php>&lt;?php if ( have_posts() ) : ?&gt;
 
    &lt;?php /* Start the Loop */ ?&gt;
    &lt;?php while ( have_posts() ) : the_post(); ?&gt;
        &lt;?php get_template_part( &#039;incontent&#039;, get_post_format() ); ?&gt;
    &lt;?php endwhile; ?&gt;
&lt;?php endif; // end have_posts() check ?&gt;</code></pre></div><p>هەمان تێبینى خاڵى یەکەم ...<br /></p><div class="codebox"><pre><code data-language=php>incontent.php
incontent-image.php
incontent-aside.php
incontent-{other types...}.php</code></pre></div><br /><p><strong>سیێەم</strong> :ئەوەیە کە ناتەوێ هیچ کام لەوانەى سەرەوە بەکاربێنى واتە لە برى ئەوان تەنیا لەسەرەتا یان لە نێو بایەت یان لە نێو پەڕە بەجیا بەکاریان بهێنى... ئەویش لە ڕیگەى if ـێکەوەیە کە ئەمەیە<br /></p><div class="codebox"><pre><code data-language=php>if( has_post_format(&#039;image&#039;) ):
// do something
elseif( has_post_format(&#039;aside&#039;) ):
//do some thing
endif;</code></pre></div><p>--------------------------------------------</p><p><strong>هێنانى پەڕگە لەڕووکار Get Template Part</strong><br />ئەمە فەنکشنێکى ۆردپرێس کە تایبەتە بە هێنانى پەڕگەلە نیو ڕووکاردا ... ئەمە لە برى شێوازەکانى هێانانى پەڕگە بە PHP وەک include بەکاردێێت... چاکى ئەمە لەوادایە گەر پەڕگەکە بوونىشى نەبێت نابێتە هۆى دروستبوونى هەڵە وەک ئەوەى PHP ... فەنکشنەکە ئاوا ئەنووسرێ<br /></p><div class="codebox"><pre><code data-language=php>get_template_part($slug,$name);</code></pre></div><p>ئەم فەنکشنە دوو پاڕامیتەرى هەیە کە بریتین لە name &amp; slug .. سوودى هەردووکیان ئەوەیە کەبە هۆیانەوە پةرگە بانگ ئەکرێ بەجۆرێک ناوى پەڕگە واى لێدێت slug-name.php... بۆ نموونە پەڕگەیەک بەم ناوە بێت content-video.php ئاوا بانگ ئەکرێ<br /></p><div class="codebox"><pre><code data-language=php>get_template_part(&#039;content&#039;,&#039;video&#039;);</code></pre></div><p>ئاسایی گەر slug نەشنووسرێ ئەوا پەڕگەکە گەر بە name ـەکە هەبێت ئەوا دەهێنێت ..واتە بەم جۆرە..<br /></p><div class="codebox"><pre><code data-language=php>get_template_part(&#039;content&#039;);</code></pre></div><p>لێرە پەڕگەکە بە نێوى content.php ـەوە هەیە....<br />ئێستا دێنیە سەر ئەوەى کە گەر پەڕگەکە لە نێو بوخچەیەکیش هەبێت ۆن بانگى بکەین؟ ... بۆ نموونە گەر پەڕگەکە ناوى content-video.php و لە نێو بوخچەیەکیش بێت بە نێوى inc ئەوا بەم جۆە بانگى ئەکەین...<br /></p><div class="codebox"><pre><code data-language=php>get_template_part(&#039;inc/content&#039;,&#039;video&#039;);</code></pre></div><p>زانیارى زۆرتر..<br /><a href="http://codex.wordpress.org/Post_Formats">http://codex.wordpress.org/Post_Formats</a><br /><a href="http://codex.wordpress.org/Function_Reference/get_template_part">http://codex.wordpress.org/Function_Ref … plate_part</a></p><p>ڕێز..<br />٢٠١٤/٨/٢</p>]]></description>
			<author><![CDATA[null@example.com (Pshtiwan_95)]]></author>
			<pubDate>Fri, 01 Aug 2014 21:09:11 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=252918#p252918</guid>
		</item>
	</channel>
</rss>
