Custom Post Archives creates a fully featured set of archives for each post type using a robust back-end and native templating functionality.
The following function and filters are created by this plug-in. For more detailed descriptions, check the Help section built into the settings page.
Functions
is_custom_archive({$post_type = false});
get_custom_archive_url($post_type);
get_custom_archive_label({$post_type = false});
get_custom_archive_link($post_type);
The following functions are for advanced users. Each overrides the settings for the corresponding post_type in the plugin settings.
add_custom_archive($post_type,$slug,{$in_default = false,$in_rss = false});
remove_custom_archive($post_type);
add_to_default_archive($post_type);
remove_from_default_archive($post_type);
reset_custom_archive_to_default($post_type);
Filters
cpa_rewrite_label
Allows you to format the label returned by get_custom_archive_label().
cpa_templates
Allows you to provide or alter the list of templates Custom Post Archives searches for.
Requires: 3.0 or higher
Compatible up to: 3.1.4
Last Updated: 2010-12-1
Downloads: 5,614
Got something to say? Need help?