<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Các bình luận về: Tạo Custom Post Types	</title>
	<atom:link href="https://wpazweb.com/tao-custom-post-types/feed/" rel="self" type="application/rss+xml" />
	<link>https://wpazweb.com/tao-custom-post-types/</link>
	<description>Get expert assistance for your WordPress website</description>
	<lastBuildDate>Mon, 13 Jul 2020 20:42:02 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		Bởi: Hoàng Kiếm		</title>
		<link>https://wpazweb.com/tao-custom-post-types/comment-page-1/#comment-823</link>

		<dc:creator><![CDATA[Hoàng Kiếm]]></dc:creator>
		<pubDate>Tue, 21 Apr 2020 02:07:58 +0000</pubDate>
		<guid isPermaLink="false">https://wpazweb.com/?p=552#comment-823</guid>

					<description><![CDATA[Trả lời tới &lt;a href=&quot;https://wpazweb.com/tao-custom-post-types/comment-page-1/#comment-822&quot;&gt;thong&lt;/a&gt;.

Bạn mô tả cụ thể trường hợp của bạn xem, để mình có thể hỗ trợ.
Ví dụ: bạn muốn hiện category của post ? hay là hiện post theo category ở trang category?
Đoạn code dưới là một ví dụ về lấy post theo category id = 3 nhé
&lt;code&gt;$args = array(
  &#039;post_type&#039; =&gt; &#039;post&#039; ,
  &#039;orderby&#039; =&gt; &#039;date&#039; ,
  &#039;order&#039; =&gt; &#039;DESC&#039; ,
  &#039;posts_per_page&#039; =&gt; 6,
  &#039;cat&#039;         =&gt; &#039;3&#039;,
  &#039;paged&#039; =&gt; get_query_var(&#039;paged&#039;),
  &#039;post_parent&#039; =&gt; $parent
); 
$q = new WP_Query($args);
if ( $q-&gt;have_posts() ) { 
  while ( $q-&gt;have_posts() ) {
    $q-&gt;the_post();
    // your loop
  }
}&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>Trả lời tới <a href="https://wpazweb.com/tao-custom-post-types/comment-page-1/#comment-822">thong</a>.</p>
<p>Bạn mô tả cụ thể trường hợp của bạn xem, để mình có thể hỗ trợ.<br />
Ví dụ: bạn muốn hiện category của post ? hay là hiện post theo category ở trang category?<br />
Đoạn code dưới là một ví dụ về lấy post theo category id = 3 nhé<br />
<code>$args = array(<br />
  'post_type' => 'post' ,<br />
  'orderby' => 'date' ,<br />
  'order' => 'DESC' ,<br />
  'posts_per_page' => 6,<br />
  'cat'         => '3',<br />
  'paged' => get_query_var('paged'),<br />
  'post_parent' => $parent<br />
);<br />
$q = new WP_Query($args);<br />
if ( $q->have_posts() ) {<br />
  while ( $q->have_posts() ) {<br />
    $q->the_post();<br />
    // your loop<br />
  }<br />
}</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Bởi: thong		</title>
		<link>https://wpazweb.com/tao-custom-post-types/comment-page-1/#comment-822</link>

		<dc:creator><![CDATA[thong]]></dc:creator>
		<pubDate>Tue, 21 Apr 2020 01:59:48 +0000</pubDate>
		<guid isPermaLink="false">https://wpazweb.com/?p=552#comment-822</guid>

					<description><![CDATA[minh muốn hiện post by category mà không được, bạn có thể giúp đỡ với được không]]></description>
			<content:encoded><![CDATA[<p>minh muốn hiện post by category mà không được, bạn có thể giúp đỡ với được không</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
