اساتید گرامی تو یکی از سایتهای خارجی این مطلب رو پیدا کردم که برای استفاده از آر اس اس سایتهای دیگر برای ایجاد سایت خودکار هست میخواستم ببینم که این کد رو به چه نحو و دقیقاً در کدوم قسمت از قالب قرار بدم آخه من ویرایش وردپرس بلد نیستم. و اینکه باید قسمت کرن سایت هم فعال باشه؟
To include an RSS feed of your previous posts or any other feed, follow these steps:
From your WordPress Dashboard, acess your theme editor by pointing to “Appearance.”
Select the template where you want to add your feed, such as “Single Post.php,” “page.php,” or “home.php.”
Include this string of code where you want your feed to appear:
<?php include_once(ABSPATH.WPINC.’/rss.php’);
wp_rss(‘http://tortillasoop.com/?feed=rss2′, 12); ?> —— (Change the number to the number of posts you want to appear in your feed).
This should do the trick. If you want the feed to follow the css style of the page it appears on, make sure to keep it within the <div id=”content”></div> clause. Make sure not to interrupt any dividers <div></div>.
Please let me know how this works out for you.
با تشکر
To include an RSS feed of your previous posts or any other feed, follow these steps:
From your WordPress Dashboard, acess your theme editor by pointing to “Appearance.”
Select the template where you want to add your feed, such as “Single Post.php,” “page.php,” or “home.php.”
Include this string of code where you want your feed to appear:
<?php include_once(ABSPATH.WPINC.’/rss.php’);
wp_rss(‘http://tortillasoop.com/?feed=rss2′, 12); ?> —— (Change the number to the number of posts you want to appear in your feed).
This should do the trick. If you want the feed to follow the css style of the page it appears on, make sure to keep it within the <div id=”content”></div> clause. Make sure not to interrupt any dividers <div></div>.
Please let me know how this works out for you.
با تشکر