For future reference, this article covers each of the many ways to access your WordPress-generated feeds. Several different URL formats are available for the various types of WordPress feeds — posts, comments, and categories — for both permalink and default URL structures. For each example, replace “https://domain.tld/
” with the URL of your blog. Note: even though your blog’s main feed is accessible through many different URLs, there are clear benefits to using a single, consistent feed URL throughout your site.
Nội dung bài viết
WordPress Post-Feed Formats for Permalinks
If you have permalinks enabled on your site, your main-content (posts) feed is accessible via the following URLs, depending on which feed format you would like to use:
https://domain.tld/feed/
(RSS 2.0 format)https://domain.tld/feed/rss2/
(RSS 2.0 format)https://domain.tld/feed/rss/
(RSS 0.92 format)https://domain.tld/feed/rdf/
(RDF/RSS 1.0 format)https://domain.tld/feed/atom/
(Atom format)
WordPress Post-Feed Formats for Default URLs (non-permalink)
By default, your main-content (posts) feed is accessible via the following URLs, depending on desired format:
https://domain.tld/wp-rss2.php
(RSS 2.0 format)https://domain.tld/wp-rss.php
(RSS 0.92 format)https://domain.tld/wp-rdf.php
(RDF/RSS 1.0 format)https://domain.tld/wp-atom.php
(Atom format)
WordPress Post-Feed Formats via Query String (non-permalink)
Alternately, your main-content (posts) feed is also available at the following URLs, depending on desired format:
https://domain.tld/?feed=rss2
(RSS 2.0 format)https://domain.tld/?feed=rss
(RSS 0.92 format)https://domain.tld/?feed=rdf
(RDF/RSS 1.0 format)https://domain.tld/?feed=atom
(Atom format)
Display your Default Post-Feed URLs
To determine/display the default posts feed URL for your blog’s main content, place any or all of these template tags into a useful location in one of your theme files:
<?php bloginfo('rss2_url'); ?>
(RSS 2.0 format)<?php bloginfo('rss_url'); ?>
(RSS 0.92 format)<?php bloginfo('rdf_url'); ?>
(RDF/RSS 1.0 format)<?php bloginfo('atom_url'); ?>
(Atom format)
WordPress Main Comments Feed
Your blog’s main comments feed is available only in RSS 2.0 format, but there are several URL options from which to choose:
https://domain.tld/comments/feed/
(Permalink format)https://domain.tld/wp-commentsrss2.php
(Default format)https://domain.tld/?feed=commentsrss2
(Query-string format)
Display your Main-Comments Feed URL To display the default URL for your main comments feed, add this template tag to your theme file and load the page in your browser: <?php bloginfo('comments_rss2_url'); ?>
Post-Specific Comment Feeds
By default, every post also delivers its own feed featuring all of its comments. To display feed URLs for individual, post-specific comment feeds, place this template tag anywhere in the main post loop or comment loop 1: <?php comments_rss_link('Subscribe to comments on this post via RSS-2.0 feed'); ?>
Alternately, to display the comment feed URL for any specific post, simply append either of the following to the original post URL:
feed/
(Permalink format)?feed=rss2
(Default format)
Here is an example of each method for a generalized post URL:
https://domain.tld/individual-post/feed/
(Permalink format)https://domain.tld/individual-post/?feed=rss2
(Default format)
Update: When using default (non-permalink) URLs, the post-specific comment feeds are available via the following format: https://domain.tld/?feed=rss2&p=123
..where “p=
” references the post ID (thanks to Spamboy for sharing this information).
Category Feeds
To display individual category feed URLs, use either of the following formats 2:
https://domain.tld/category/categoryname/feed/
(Permalink format)https://domain.tld/wp-rss2.php?cat=33
(Default format)
Tin tức nổi bật
Thiết kế web theo mẫu
Thiết kế web theo mẫu là gì? Thiết kế web theo mẫu là dịch vụ website được xây dựng...
Tổng hợp 20+ cách kiếm tiền từ website trong năm 2020
Thời kỳ 4.0, Internet trở thành một phần không thể thiếu trong cuộc sống của chúng ta. Người...
10 bước xây dựng kế hoạch marketing online
Thị trường luôn thay đổi và chính vì thế các chiến lược marketing online của bạn cũng cần...
Ý tưởng đặt tên thương hiệu – Cách chọn tên miền website – Lời khuyên vàng từ ITC Việt
Cách chọn tên miền website. Chúng tôi là ITC Việt. Chúng tôi là công ty thiết kế website...
Thiết kế website theo yêu cầu
Hiện nay Dịch vụ Thiết kế website theo yêu cầu đã không còn xa lạ đối với các doanh...
Thiết kế trang web, lập trang web, dựng trang web bán hàng
Nội dung bài viết Thiết kế trang web Thiết kế trang web là điều mà các công...
E-commerce là gì? E-business là gì? So sánh E-commerce và E-business
E-Commerce (tiếng Việt là thương mại điện tử) đang là một trong những vấn đề đáng quan tâm của...
Để thiết kế web đẹp bạn không thể bỏ qua 8 lưu ý sau
Việc thiết kế web ngày nay không còn dừng lại ở việc cung cấp thông tin đủ hay...