WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Yet Another Related Posts Plugin] How to display related pages (15 posts)

  1. vpstechs
    Member
    Posted 4 years ago #

    The plugin is working fine for related posts but i want to show only related pages How it can be possible.

    Thanks

  2. You can either choose to "cross-relate posts and pages" in the YARPP settings, or you can add the related_pages() code to your theme in the Loop.

  3. JamesBB
    Member
    Posted 4 years ago #

    Never worked for me :-(

    Although this plugin is excellent for posts, it doesn't work for pages. Would be nice to work on that as more and more people use WP as a CMS with lots of static pages.

    THANK YOU!

  4. @JamesBB, I've tested this and it's worked for me, so I'm surprised.

    Are you choosing to cross-relate or calling related_pages()? When you say it doesn't work, does it not display anything at all, or does it say "no related posts"?

  5. nolesrule
    Member
    Posted 4 years ago #

    I'm having the same problem. I have cross-relate turned on.

    There is no related posts/pages section in the pages admin screen and no pages show up on the related posts list for posts. I have set the threshold to 0.1

    Do I need to have a tag or category for pages plugin to make it work?

  6. Hi all— I believe I figured out what the issue was here. It will be fixed in version 3.1.8, which I am releasing now.

  7. nolesrule
    Member
    Posted 4 years ago #

    The fix helped a bit, but there is still an issue.

    Take a look at this page.

    http://www.tampabaykidseat4free.com/2010/06/08/review-mama-fus-clearwater-mall/

    I have both the automatically included related listing and the widget listing on the post. The automatic listing includes pages, but the Widget listing does not.

  8. @nolesrule Ah, yes, I forgot to update the widget code part. I believe I fixed it in the development version:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.zip

    Could you try it out and see if it fixes your issue? Thanks!

  9. nolesrule
    Member
    Posted 4 years ago #

    That worked!

    Thanks.

  10. adambundy
    Member
    Posted 4 years ago #

    mitchoyoshitaka, great plugin! I have 2 comments- I'm wanting to use this plugin to show related posts that are a custom post type, which from another forum post looks like its not possible. If it is, could you post a template example? Also, I have a LOT of categories and tags, so it would be great to have a 'select all' button below the disallow option boxes so that selectively 'enabling' certain categories would be easier. Thanks again!!

  11. adumbundy, I don't think it's possible now, but I've made a ticket for myself so that I make sure to get around to it. Here it is:

    http://plugins.trac.wordpress.org/ticket/1142

    The disallow tags section has a lot of problems, actually, and really has to be rethought... I'll keep that in mind in the future too.

  12. lcreative777
    Member
    Posted 4 years ago #

    Is there a way to exclude certain pages in the related_pages() I tried:
    <?php related_pages('exclude=page-ID25,page-id=30')?> to no avail.. It would be nice if you could exclude certain pages - like the home page from appearing in the Related pages section..

    Also, a nice feature to add would be a per post manual add selection of posts that the author would like to be related. The automation algorithm is awesome but, sometimes an author may want to pick and choose.

    Thanks! Nice work!

  13. You can exclude pages not using some code like that but by putting them in a particular category or giving them a particular tag and excluding that category or tag in YARPP optiosn.

  14. barna
    Member
    Posted 3 years ago #

    Hi mitcho!

    Firstly, I would like to say this is a great plugin!

    On the other hand, without coding or using plugins we can't exclude pages from the related loop, because we can't give categories or tags to pages.

    But I found a solution. After, I installed a plugin which let me put pages in categories, I could exclude pages. The plugin was that: http://wordpress.org/extend/plugins/ninja-page-categories-and-tags/

    I hope, could help to you or anyone else. :) And thanks for the plugin!

    barna

  15. Huh, cool find @barna. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic