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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)