>
Download This Plugin | |
Download Elegant Themes | |
Name | Simple Custom Post Type Archives |
Version | 0.9.3 |
Author | Jake Goldman (10up) |
Rating | 0 |
Last updated | 2010-08-19 01:42:00 |
Downloads |
16147
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Simple Custom Post Type Archives plugin added 1 bytes of resources to the Home page and 2 bytes of resources to the sample Post page.
Simple Custom Post Type Archives plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Simple Custom Post Type Archives plugin ads no tables to your Wordpress blog database.Adds friendly permalink support, template files, and a conditional for public, non-hierarchical custom post types.
WordPress 3.0 opens the door for entirely new content management possibilities with custom post types. As awesome as it is, the first version to implement custom post types is missing a few things. This plug-in patches one of those holes: templates and friendly permalinks that enable "archives" for custom post types, much the like the "blog home" is an archive for all "post" post types.
This plug-in will only add custom post type archives for non-hierarchical (post-like), public custom post types with a "slug" or permalink.
For example, suppose you have a custom post type "Movies". WordPress 3.0 takes care of permalinks for individual movie content, for example, http://yourblog.com/movies/casa-blanca/. You might think you could get an archive of all recently added movies (just like the blog home is an archive of all recently added posts) by going to http://yourblog.com/movies/, but this isn't supported out of the gate. You can do it without permalinks by going to http://yourblog.com/?post_type=movies, but even then, you're forced to use the index.php template file in your theme. This plug-in enables archive permalinks (yourblog.com/movies), adds two new template files in the hierarchy (i.e. type-movies.php and type.php), and adds a new "is_custom_post_type_archive" conditional you can use in your theme!
yourblog.com/(custom-post-type-name)
- including paging (/page/2/) and feedS (/feed/)type-(custom-post-type-name).php
(or post type slug) and type.php
custom-post-type-archive
and custom-post-type-(post-type-name)-archive
is_home
conditional check on custom post type archives (incorrectly reports true by default)is_custom_post_type_archive
for use in your themes: can optionally be passed name of post typeWhat didn't make it in this pre-1.0 release: