WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] How can I turn off YARRP on pages (not posts)? (5 posts)

  1. DabidK
    Member
    Posted 2 years ago #

    YARRP is posting related posts on all of my posts (as I want it to), but it also does it on Pages and indexes and so forth (which I don't want it to). When I go into the Settings, it says "Post types considered: Posts, Pages", but there's no checkboxes to turn on or off and seemingly no way of disabling YARRP displaying on non-posts.

    Is there really no way of setting YARRP to only work on posts?

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. Cyndi Papia
    Member
    Posted 2 years ago #

    I have the same problem and it's showing up in a featured page I used in a header widget.

  3. cherry0
    Member
    Posted 2 years ago #

    I am trying to figure this out to. I only want it to display on posts because at the moment it is displaying on posts and pages and because of this on my homepage it is suggesting the About page, Privacy page, etc. which doesn't look so good.

  4. Cyndi Papia
    Member
    Posted 2 years ago #

    Cherry0, I ended up having to put in coding in my functions.php file (I use Genesis/StudioPress).

    [ Moderator note: please wrap code or log lines in backticks or use the code button. ]

    /** Add Related Posts on Single Posts **/
    add_action('genesis_after_post_content', 'include_related_posts', 5);
    function include_related_posts() {
        if ( is_singular('post')  && function_exists( 'related_posts' ) ) {
        	related_posts();
    	}
    }
  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    This seems to be a bug which I can't reproduce. YARPP's builtin functionality is to only display on single-post displays, not indices and non-post pages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic