WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Disabling YARRP On Specific Pages (24 posts)

  1. Lab41
    Member
    Posted 1 year ago #

    I want it to have default on all pages, but there are 1 or 2 where I don't want it to show. How do I do that? Is there like a <no-YARRP> tag I can add to the pages where I don't want it to show?

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    You would want to control this either in your theme or in CSS. That is, in PHP, you can manually choose to call related_posts() or not.

    Alternatively, in CSS, you can pretty simply hide the YARPP section (always wrapped in .yarpp-related). Check your post's HTML and you'll see that its <body> has a class like postid-4502, built with its post ID. You could then add CSS like body.postid-4502 .yarpp-related {display:none}

  3. Lab41
    Member
    Posted 1 year ago #

    Hi Mitcho

    I am not a huge programmer. I use ad injection and other plugins and to ensure they don't get displayed on certain pages, I just go into text view of wordpress editor and add "<!--NoAdds--> and then it doesn't show on this page.

    So what you're saying is I go to wordpress editor, and enter in body.postid-4502 .yarpp-related {display:none} and it won't display on that page??

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @Lab41 yes, that should work in your theme editor. But in general, no, there is no simple way like the <!--NoAds--> you mention, for YARPP.

  5. Lab41
    Member
    Posted 1 year ago #

    Would it possible to request something like that for a future version?
    :-)

    Would be so much easier. Something like <!--NOYARRP-->

  6. Alberg15
    Member
    Posted 1 year ago #

    Hi Mitcho. I was about to send you a note asking about this when I see that others are looking for the same thing. It would be extremely useful to be able to allow my client to restrict the display on select posts where it makes no sense to show it. I like Lab41's suggestion to be able to add a simple shortcode after a post or on a page where you don't want it to show up. As an example, I use a social share plug in (hupso) that does this via shortcodes - Use [hupso_hide] anywhere in post's text to hide buttons for specific post. Use [hupso] anywhere in post's text to show buttons for specific post at custom position.

    Just a suggestion.

    Thanks and good luck, AB

  7. Lab41
    Member
    Posted 1 year ago #

    YES YES YES! This would be useful!

  8. mconheady
    Member
    Posted 1 year ago #

    this would be very hand for me. I have a view features of my website pages that are based on pages content, so i get the YARRP showing up multiple times. Otherwise, the plugin is one of the best.

  9. Lab41
    Member
    Posted 1 year ago #

    @Mitcho - is this possible at all?

  10. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    I'll keep it in mind for a future version, but I can't make any promises. Thanks to all of you for making your opinion known! :)

  11. Lab41
    Member
    Posted 1 year ago #

    Thanks! This would be the best feature ever! :-)

  12. jengerard
    Member
    Posted 1 year ago #

    I too would love it if this was added as an option. I would like to disable YARPP on the homepage of our blog, but love it on the individual blog post pages. It would be awesome to have a feature like this for people like myself who are not good with code. Our blog receives about 20,000 viewers a day and I'm sure our readers would appreciate having the homepage a little more de-cluttered and being able to find what they need where they need it.

  13. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Alright all---your voice has been heard! I just pushed a new beta, 4.0.6b1, which added this feature. Add the comment <!--noyarpp--> (don't add extra space or anything) and YARPP will be turned off for that page.

    Here's the download link:

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

  14. Lab41
    Member
    Posted 1 year ago #

    Thank You! This is much appreciated!!!

  15. mconheady
    Member
    Posted 1 year ago #

    This is awesome (great implementation too) !

  16. jengerard
    Member
    Posted 1 year ago #

    Thank you so much for listening to us and taking the time to make this great addition. Will you be issuing an update to the plugin? I am not sure how to install it.

  17. Alberg15
    Member
    Posted 1 year ago #

    Thank you, Mitcho. You're the BEST! This new option is a real help.

    For anyone who doesn't want any reference to show on a post, remember to also blank out the field that contains the text to show when there are "<p>No related posts.</p>"

  18. jengerard
    Member
    Posted 1 year ago #

    Alright, I am definitely not a techie, I can't seem to figure out how to install the update. I downloaded the file, unzipped it and uploaded the file on the "add new" plugins page. Obviously this is not how to do it because it didn't work. I'm sure you are all wondering how in the world I was able to create a site (http://www.halfbakedharvest.com) but let's just say "Google" was my best friend. I would be so appreciative if someone could help me?

  19. johnirsk8r
    Member
    Posted 1 year ago #

    upload the folder via ftp to your wp-content/plugins/ folders and over write

  20. jengerard
    Member
    Posted 1 year ago #

    Thanks for the tip, but still too complicated for me. I guess I will just wait until the update comes out, but thank you!

  21. smartfinds
    Member
    Posted 10 months ago #

    Hello,

    This thread seems to be the closest to what we are looking for. Basically we just want YARRP to be disabled on the home page.

    1. Any possibility there can be a option for this in settings in a future release?

    2. If I understand correctly, we need to download the Beta first...however, what I didn't quite understand is exactly where to place the <!--noyarpp-->..something about comments, but not clear how this applies to the home page.

    Look forward to any clarification. Thanks.

  22. sceptre
    Member
    Posted 9 months ago #

    Hi
    YARRP seems to be working fine but the last two posts I have added are not showing related posts at all even though the categories have been chosen. The first I managed to get working but cannot remember how. The post I published today does not show any related posts at all even though there are related posts. Just such a pity as all the other related post plugins I have tried look crap in comparison. Can you please help?
    Thanks
    Peter

  23. Jimeny
    Member
    Posted 9 months ago #

    Hi everyone,

    Just to clarify. On my site it seems to work to disable YARPPby adding <!--noyarpp--> into the body of the post/page using the code editor (as opposed to the visual editor).

    Great plugin! Definitely worth a donation, looks brilliant and is real simple to use.

    Thanks for your hard work.

  24. mconheady
    Member
    Posted 9 months ago #

    Yep.. that features has been working for me since it's release. Such a great plugin. Amazing what it comes up with. And on the special pages I need to turn it off for, that snippet works 100%

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.