Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I was looking at http://wordpress.org/extend/plugins/web-ninja-auto-tagging-system/ and unfortunately, it wont work on custom post types.

Can anyone suggest (with what changes are needed) to have this work for custom post types?

share|improve this question
    
on lines 74 & 91 of the plugin it queries the database to get all the posts of type 'post' perhaps if you try with a registered custom post type, it might work. Would need a lot of testing! –  Cristian Jan 28 '12 at 8:51
add comment

1 Answer

For a quick hack.

@ lines 74 and 91 of the plugin its making a SQL request where it's limiting the results to posts only.

WHERE post_status='publish' AND post_type='post'

So, if you change that to include your custom postypes it should pick them up.

Or simply remove that SQL query and run a standard WP_Query query to return your posts in question.

share|improve this answer
    
Thanks - I'll try it out...if anyone has another plugin to suggest or idea...always much appreciated! –  BentCircle Jan 29 '12 at 2:19
    
hey noponies, I tried doing that but nothing changed...maybe I have the wrong custom post type...anyone else have any other ideas? –  BentCircle Mar 10 '12 at 16:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.