• jkt

    (@jkt)


    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jkt

    (@jkt)

    Apologies, plugin version is 3.1.5, wordpress is 2.9.2.

    You’d like to not display the related posts on that post? That is not what the “exclude posts in pool” options are for. If you want to not show the related posts for certain posts, you need to use the manual display by adding related_posts() to your theme and wrapping that in some conditional.

    Thread Starter jkt

    (@jkt)

    Hi mitchoyoshitaka,

    Thanks for getting back to me.

    The point 5 of the ‘Key Features’ under the description section of the plugin’s homepage (https://mitcho.com/code/yarpp/#description) says, and I quote:
    ‘Disallowing certain tags or categories: You can choose certain tags or categories as disallowed, meaning any page or post with such tags or categories will not be served up by the plugin.’

    This reads, to me, that I can choose categories which, when set on a post, stop the plugin from listing ‘related posts’ when displaying the post.

    Is the description wrong or am I having a fundamental misunderstanding with the wording of the description?

    Thanks in advance.

    When I say those posts “will not be served up by the plugin”, I mean that those entries are not served as related entries. It does not mean YARPP does not display for them at all. This behavior is (hopefully) reflected in the interface of the settings as well… my apologies if that seems misleading.

    Hi Michto,

    Just downloaded and installed what appears to be a superb plugin! ??

    I too thought before downloading the plugin that if you exclude categories it’ll exclude the widget from displaying on posts in categories you’ve specified. Is there any chance of adding this to the wishlist for a future version?

    @zestylemon, I’d hoped the explanation on “The Pool” was clear. :/

    As for a future version, I’d like to not further complicate options and change behavior now that the plugin is quite popular. As this is possible already using custom templates or Widget Logic (which I believe you recommended elsewhere), I don’t plan on implementing this within YARPP itself.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Err: disallow by category not working’ is closed to new replies.