Redirect Tag to Post with the same name

Try the code from this article:
http://metinsaylan.com/wordpress/2011/02/15/how-to-redirect-to-single-post-page-if-there-is-one-post-in-categorytag/

It checks $wp_query->post_count and redirects to the only article of an archive if there is just one.

Leave a Comment

tech