META if <?php if ( is_single() problem with all in one seo pack 0.4 and awmp 2.0
-
Hi everyone,
I have a problem.. even though all in one seo pack 0.4 and awmp 2.0 work beatifully together in single posts and give the descriptions and keywords I desire it makes quite a mess of things on the main page that displays all posts.
It stacks all the keywords together and causes the same keywords to show up a few times which will inevitably cause the red flag to go up on Search engines.
I read the meta tags in wordpress page and it said that there is a condition I could add.
<meta name="description" content="<?php if ( is_single() ) { single_post_title('', true); } else { bloginfo('name'); echo " - "; bloginfo('description'); } ?>" />
Problem is though that these plugins contain the meta hooks inside their respective .php files and I dont know how to integrate this condition inside these plugins.
Essentially I just want to have the main page that shows all the posts to have a short and concise meta description and meta keyword area or somehow filter out duplicate keywords.
Any ideas? Thanks for anyone that takes the time to help out!
- The topic ‘META if <?php if ( is_single() problem with all in one seo pack 0.4 and awmp 2.0’ is closed to new replies.