[wp-hackers] [Plugin: SEO Super Comments] Extending the Code

wp-hackers at google-adsense-templates.co.uk wp-hackers at google-adsense-templates.co.uk
Thu Nov 26 17:41:37 UTC 2009


I posted this question to
http://wordpress.org/support/topic/335137?replies=1 but so far no joy.
hoping I get some pointers here.

I've been playing around with a plugin called SEO Super Comments
http://www.prelovac.com/vladimir/wordpress-plugins/seo-super-comments
which creaes a page for each comment.

Got it working at
http://www.45-year-old-millionaire.co.uk/what-is-twitter-marketing.html#comments
(though had to hack my themes code to get it working as I wanted it).

Example comment page
http://www.45-year-old-millionaire.co.uk/what-is-twitter-marketing.html?cid=4848

Cool concept for an SEO plugin, but it's not perfect.

What I want to do now is only show the link code when a comment is X
number of words or charachters, so a long comment gets it's own page
(created by the plugin) while small comments don't get the link. Right
now a single word comment gets it's own page which is bad SEO wise.

So I'm trying to figure out the code for this and not sure where to
start. Is there a variable or something that counts the number of
words in a comment for example? If there is I could use it as part of
a if statement.

David


More information about the wp-hackers mailing list