Function Reference/get post type archive link
This article is a
ROUGH DRAFT. The author is still working on this document, so
please do not edit this without the author's permission. The content within this article may not yet be verified or valid. This information is subject to change.
Languages: English • (Add your language)
Description
Retrieve the permalink for a post type archive.
Usage
<?php get_post_type_archive_link( $post_type ); ?>
Parameters
- $post_type
- (string) (required) Post type
- Default: None
Return Values
- (string)
- the permalink for a post type archive.
Examples
<a href="<?php echo get_post_type_archive_link( 'Movies' ); ?>">Movies Archive</a>
Notes
Change Log
Since: 3.1.0
Source File
get_post_type_archive_link() is located in wp-includes/link-template.php.
Related