[Plugin: Yet Another Related Posts Plugin] Err: disallow by category not working
-
Hi,
I installed this plugin the other day, and today created a post in which I need to disable the related posts list.
I created a new category, ‘noyarpp’ and in the settings panel for YARPP, I click ‘yarpp’ on the ‘disallow by category’ option.
I clear the cache (‘delete from wp_yarpp_keyword_cache; delete from wp_yarpp_related_cache;’) and review the page. The related list still displays.
The SQL, from running in debug mode shows:
SELECT 857, ID, (0+ (MATCH (post_content) AGAINST ('female 15 pregnancy risk im condom vasectomy children male having its contraception condoms rate operation vasovasostomy failure chance eg pills ')) * 3+ (MATCH (post_title) AGAINST ('birth term medium deferentectomy ')) * 1+ COUNT( DISTINCT cattax.term_taxonomy_id ) * 1) as score
from wp_posts
left join wp_term_relationships as blockrel on (wp_posts.ID = blockrel.object_id)
left join wp_term_taxonomy as blocktax using (term_taxonomy_id
)
left join wp_terms as blockterm on (blocktax.term_id = blockterm.term_id and blockterm.term_id in (50))
left JOIN wp_term_relationships AS thiscat ON (thiscat.object_id = 857 )
left JOIN wp_term_relationships AS catrel on (catrel.term_taxonomy_id = thiscat.term_taxonomy_id
AND catrel.object_id = wp_posts.ID)
left JOIN wp_term_taxonomy AS cattax ON ( catrel.term_taxonomy_id = cattax.term_taxonomy_id
AND cattax.taxonomy = ‘category’)
where (post_status IN ( ‘publish’, ‘static’ ) and ID != ‘857’) and post_password =”The ‘noyarpp’ category is ID 50.
Any idea why the related stuff is still displaying?
- The topic ‘[Plugin: Yet Another Related Posts Plugin] Err: disallow by category not working’ is closed to new replies.