To get the archive link of a post type use get_post_type_archive_link()
:
print get_post_type_archive_link( get_post_type( $GLOBALS['post']->ID ) );
Related Posts:
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- Page Template as Custom Post Type Archive
- Custom post type yearly/ monthly archive permalinks
- Can’t get post id on page that is a custom post type archive
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives with 0 Posts Redirects as 404
- Get monthly archives for custom post type
- Is it possible to remove the posts_per_page limit on a specific post type?
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- How to get_queried_object on multiple objects?
- Assign Page Template Within A Custom Post Type
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- Compare 3 custom fields and sort by oldest
- Post type archive page not working
- Alphabetical sorting of custom post type – one letter per page
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Getting taxonomy terms used by custom post type
- Custom post type archive sorted and grouped by date in post meta field
- Archive or taxonomy pages not working for custom post type
- Custom Post Type archive giving 404
- Custom-post-type-archive: posts sorted/filtered by year?
- I am facing problem in my archive page , it is partially working
- Add the current menu item CSS class to a custom page type archive in WordPress menu
- taxonomy template for custom post type the same as the archive
- Loop that displays the first post of every available custom post type?
- How to use WP_Query in a CPT achive page?
- Have a Custom Post Type index page display taxonomy items instead of posts
- Conditional tags don’t work
- Query var removed after rewrite
- Specify a Page as the parent to the CPT Archive
- Custom Post Type with has_archive ignores my custom archive and single template
- Custom template won’t load for a custom post type (custom permalinks used)
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Unable to get post archive link
- CPT custom archive template does not get loaded
- Custom Post Type archive loop separated by term, in specific term order
- Show only posts from one category on custom post type archive page
- How should I structure my post types?
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Use Custom Post Type archive page for the taxonomies term archive page
- Display custom post type category, while in a CPT category, then the posts beneath
- Custom Post Type Archive URL is wrong
- How to display custom post in archive section of the wordpress page?
- Canonical url differs from custom post type archive URLs
- Custom post type archive pagination 404
- posttype/taxonomy/term archive page 404 error
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Custom Post Archive is not working
- Custom post type archive with page as parent url
- Set featured image to archive.php
- Custom post type, global categories — what’s the template name?
- Set thumbnail and title for a post type archive (not post itself!)
- Url to archive page for custom post type
- How can I use archive-{post_type}.php theme template?
- Return the name of the post type
- Alphabetically sort a taxonomy.php template by post title
- Custom Post type date archive for custom taxonomy
- adding custom post type “name” to single template
- Custom Post Type Archive template not being called
- Query Posts that have Custom Taxonomy
- Custom Post Type Custom Archive Page Not Working
- Order Custom Post Type Archive by multiple values in functions.php
- Displaying custom taxonomy menu in custom post type archive
- Pages not appearing?
- Is possible register two archive pages for single custom post type?
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- Static Front Page not working for custom theme
- Display Custom Post Type Archive content with Shortcode
- Custom Post Type archive page listing a 404 or single post
- Building Link List for Custom Tax
- Unsure what page hierarchy to use with CPT UI to show on front end
- Only show categories that have posts within custom post type
- get first limited words from a custom post in the archive page
- Meta_query by date for Events archive
- How to manage a custom post type archive as a page?
- Custom post types not displaying per category
- How to Show all Values in category.php page using post_type
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type archive page not showing on archive-posttype.php
- Custom post type with two templates
- Making a archive gallery page for a custom post type which already has an archive page
- Custom taxonomy in custom post type archive with pagination
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Templates list in “Page Attributes” metabox is inaccurate
- Stop Custom post type from being searched via URL
- Custom post type category page not working
- title tag for custom post type remove taxonomy name from title tag
- How can I retrieve the slug for a custom post type via name?
- paging is not working properly on news archives page [duplicate]
- CPT Archive with parent page
- custom post type not getting archived?
- Pagination not working for archive
- Remove plugin’s custom post type archive page and single pages [closed]
- Add a class to a menu item depending on a body class
- Pagination not working on custom post type archive
- Best practice to display a list/archive of Custom Posts in a Page Template
- Archive pagination – second page shows exactly the same posts