{"id":121629,"date":"2020-05-21T18:57:00","date_gmt":"2020-05-21T18:57:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-sitemap-pages-and-posts\/"},"modified":"2026-07-05T11:54:25","modified_gmt":"2026-07-05T11:54:25","slug":"wp-sitemap-pages-and-posts","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/wp-sitemap-pages-and-posts\/","author":15928813,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.0","stable_tag":"1.2.0","tested":"7.0","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"WP Sitemap Pages and Posts","header_author":"Shuvo Islam","header_description":"This will automatically generate a sitemap of all your pages and posts shortcode [wp_sitemap]","assets_banners_color":"ebf0f4","last_updated":"2026-07-05 11:54:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/shuvo.work\/wp-stemap","header_author_uri":"http:\/\/shuvo.work\/","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":12417,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"shuvo66","date":"2020-05-21 18:56:49"},"1.2.0":{"tag":"1.2.0","author":"shuvo66","date":"2026-07-05 11:54:25"}},"upgrade_notice":{"1.2.0":"<p>Security and compatibility update. Recommended for all users. Adds support for multiple post types, sorting, and excluding items.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2309667,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2309667,"resolution":"772x250","location":"assets","locale":"","width":722,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2309667,"resolution":"1","location":"assets","locale":"","width":1279,"height":677}},"screenshots":{"1":"Example sitemap output using the default shortcode."}},"plugin_section":[],"plugin_tags":[34700,6685,3481,80,1557],"plugin_category":[43,55],"plugin_contributors":[186128],"plugin_business_model":[],"class_list":["post-121629","plugin","type-plugin","status-publish","hentry","plugin_tags-html-sitemap","plugin_tags-page-list","plugin_tags-post-list","plugin_tags-shortcode","plugin_tags-sitemap","plugin_category-customization","plugin_category-seo-and-marketing","plugin_contributors-shuvo66","plugin_committers-shuvo66"],"banners":{"banner":"https:\/\/ps.w.org\/wp-sitemap-pages-and-posts\/assets\/banner-772x250.png?rev=2309667","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-sitemap-pages-and-posts\/assets\/icon-128x128.png?rev=2309667","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-sitemap-pages-and-posts\/assets\/screenshot-1.png?rev=2309667","caption":"Example sitemap output using the default shortcode."}],"raw_content":"<!--section=description-->\n<p>WP Sitemap Pages and Posts gives you an easy way to add a sitemap to any page on your site. Just drop the shortcode <code>[wpspap_sitemap]<\/code> into a page or post and it will automatically list your pages and posts, linked and ready to browse.<\/p>\n\n<p><strong>Note:<\/strong> this plugin does not generate an XML sitemap for search engines. It creates a human-readable list for your visitors. If you need an XML sitemap for SEO purposes, look for a dedicated SEO plugin.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Simple shortcode: <code>[wpspap_sitemap]<\/code><\/li>\n<li>Choose which post type(s) to display, including custom post types<\/li>\n<li>Display multiple post types at once<\/li>\n<li>Control the number of items shown<\/li>\n<li>Sort by title, date, or menu order, ascending or descending<\/li>\n<li>Exclude specific pages or posts by ID<\/li>\n<li>Lightweight \u2014 no settings pages, no bloat, no external requests<\/li>\n<\/ul>\n\n<h3>Usage<\/h3>\n\n<h4>Basic usage<\/h4>\n\n<pre><code>[wpspap_sitemap]\n<\/code><\/pre>\n\n<p>Displays all published pages.<\/p>\n\n<h4>Choose a post type<\/h4>\n\n<pre><code>[wpspap_sitemap type=\"post\"]\n\n[wpspap_sitemap type=\"page\"]\n<\/code><\/pre>\n\n<h4>Display multiple post types<\/h4>\n\n<pre><code>[wpspap_sitemap type=\"page,post\"]\n<\/code><\/pre>\n\n<p>Custom post types are supported too, as long as they are publicly viewable:<\/p>\n\n<pre><code>[wpspap_sitemap type=\"page,post,product\"]\n<\/code><\/pre>\n\n<h4>Limit the number of items<\/h4>\n\n<pre><code>[wpspap_sitemap count=\"10\"]\n<\/code><\/pre>\n\n<p>Use <code>-1<\/code> (default) to show all items.<\/p>\n\n<h4>Sort the list<\/h4>\n\n<pre><code>[wpspap_sitemap orderby=\"date\" order=\"DESC\"]\n<\/code><\/pre>\n\n<p>Supported <code>orderby<\/code> values follow WordPress's standard <code>WP_Query<\/code> options (e.g. <code>title<\/code>, <code>date<\/code>, <code>menu_order<\/code>). <code>order<\/code> accepts <code>ASC<\/code> or <code>DESC<\/code>.<\/p>\n\n<h4>Exclude specific items<\/h4>\n\n<pre><code>[wpspap_sitemap exclude=\"12,45\"]\n<\/code><\/pre>\n\n<p>Exclude one or more post\/page IDs, comma separated.<\/p>\n\n<h3>Uninstall<\/h3>\n\n<p>To remove WP Sitemap Pages and Posts, simply deactivate and delete it from the Plugins screen. It does not create any custom database tables or options.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to <code>\/wp-content\/plugins\/wp-sitemap-pages-and-posts<\/code>, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Add the <code>[wpspap_sitemap]<\/code> shortcode to any page or post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20generate%20an%20xml%20sitemap%20for%20google%3F\"><h3>Does this generate an XML sitemap for Google?<\/h3><\/dt>\n<dd><p>No. This plugin creates a human-readable list of links for your site visitors, not an XML sitemap for search engines.<\/p><\/dd>\n<dt id=\"can%20i%20style%20the%20sitemap%20list%3F\"><h3>Can I style the sitemap list?<\/h3><\/dt>\n<dd><p>Yes. The output is wrapped in <code>&lt;ul class=\"wpspap-sitemap\"&gt;<\/code>, so you can target it with your own CSS.<\/p><\/dd>\n<dt id=\"can%20i%20show%20custom%20post%20types%3F\"><h3>Can I show custom post types?<\/h3><\/dt>\n<dd><p>Yes, any publicly viewable post type can be passed to the <code>type<\/code> attribute.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added support for displaying multiple post types at once<\/li>\n<li>Added <code>orderby<\/code>, <code>order<\/code>, and <code>exclude<\/code> shortcode attributes<\/li>\n<li>Escaped all output for improved security<\/li>\n<li>Replaced deprecated <code>wp_reset_query()<\/code> with <code>wp_reset_postdata()<\/code><\/li>\n<li>Sanitized and validated all shortcode attributes<\/li>\n<li>Updated compatibility to WordPress 7.0 and PHP 7.4+<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Earlier release.<\/li>\n<\/ul>","raw_excerpt":"Generate a human-readable sitemap of your pages and posts with a simple shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121629"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shuvo66"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121629"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121629"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121629"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121629"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121629"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}