{"id":41684,"date":"2016-02-03T12:46:24","date_gmt":"2016-02-03T12:46:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/index-pages\/"},"modified":"2024-10-14T22:04:33","modified_gmt":"2024-10-14T22:04:33","slug":"index-pages","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/index-pages\/","author":13194393,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.0.1","stable_tag":"1.3.0.1","tested":"6.6.5","requires":"4.0.0","requires_php":"5.4.0","requires_plugins":null,"header_name":"Index Pages","header_author":"Doug Wollison","header_description":"","assets_banners_color":"","last_updated":"2024-10-14 22:04:33","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/dougwollison\/index-pages","header_author_uri":"http:\/\/dougw.me","rating":0,"author_block_rating":0,"active_installs":60,"downloads":2876,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"dougwollison","date":"2016-04-05 18:48:08"},"1.1.0":{"tag":"1.1.0","author":"dougwollison","date":"2016-07-29 20:28:08"},"1.2.0":{"tag":"1.2.0","author":"dougwollison","date":"2016-08-02 13:33:50"},"1.3.0":{"tag":"1.3.0","author":"dougwollison","date":"2017-04-29 13:08:20"},"1.3.0.1":{"tag":"1.3.0.1","author":"dougwollison","date":"2024-10-14 22:04:33"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","1.3.0","1.3.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[21853,1794,36433,36434],"plugin_category":[],"plugin_contributors":[82324],"plugin_business_model":[],"class_list":["post-41684","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-index","plugin_tags-custom-post-type","plugin_tags-index-page","plugin_tags-page-for-posts","plugin_contributors-dougwollison","plugin_committers-dougwollison"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/index-pages.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The Index Pages system allows you to designate pages as the index page for a particular post type.<\/p>\n\n<p>This allows you to have a custom title, text content, and other information displayed on your\npost type archives, should your current theme support it.<\/p>\n\n<p>For theme developers, the plugin offers some template functions for loading the post object for the\ncurrent index page (including the posts page), in a similar fashion to <code>the_post();<\/code>, to create things\nlike a customizable introductory banner that appears above the listing, using the index page's data.<\/p>\n\n<p>Designated index pages are flagged as such in the Pages manager, for easy recognition.<\/p>\n\n<h3>Usage Documentation<\/h3>\n\n<p>The Index Page assignment interface can be found under Settings &gt; Reading. By default, all post types\nregistered with the <code>has_archive<\/code> argument set to true will be available for assignment.<\/p>\n\n<p>For theme and plugin developers, you can register support for your custom post types like so:<\/p>\n\n<pre><code>IndexPages\\Registry::add_post_types( $post_types ); \/\/ a single post type or array of post types\n<\/code><\/pre>\n\n<p>When an index page is assigned, it's permalink will point to the associated post type's archive, with\nthe page title updated appropriately.<\/p>\n\n<p>For theme and plugin developers, you can access the index page's post object with the following.<\/p>\n\n<pre><code>the_index_page();\n<\/code><\/pre>\n\n<p>This works exactly like <code>the_post();<\/code>, populating the <code>$post<\/code> variable with the index page's data.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the contents of <code>index-pages.tar.gz<\/code> to your <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<p><strong>Details on each release can be found <a href=\"https:\/\/github.com\/dougwollison\/index-pages\/releases\">on the GitHub releases page<\/a> for this project.<\/strong><\/p>\n\n<h4>1.3.0.1<\/h4>\n\n<p>Quick Fix: apparently the Liaison class was never committed to the SVN repo.<\/p>\n\n<h4>1.3.0<\/h4>\n\n<p>Improved handling of post types, bug fixes and WPSEO compatibility.<\/p>\n\n<h4>1.2.0<\/h4>\n\n<p>Added checks to make sure an index page's associated post type exists.<\/p>\n\n<h4>1.1.0<\/h4>\n\n<p>Updated file and code structure, added missing static keyword to Backend::add_index_notice().<\/p>\n\n<h4>1.0.0<\/h4>\n\n<p>Initial public release.<\/p>","raw_excerpt":"Assign pages as the index page for WordPress custom post types, similar to the Posts Page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/41684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=41684"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dougwollison"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=41684"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=41684"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=41684"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=41684"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=41684"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=41684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}