Get custom post_type’s archive URL
Hi @Silent: Turns out there is a function in WordPress 3.1 that does exactly what you want and it is named get_post_type_archive_link(); here’s how you’d call it (assuming a custom post type named ‘product’): <a href=”https://wordpress.stackexchange.com/questions/11531/<?php echo get_post_type_archive_link(“product’); ?>”>Products</a> Below is my prior answer before I discovered that WordPress did indeed have a function built-in … Read more