WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Exclude Page/Hide Page not Post (8 posts)

  1. Margie.chau
    Member
    Posted 1 year ago #

    Hi, Great plugin. Works beautifully.

    However, I am using it only for pages (my site is setup with pages and not posts). I have 2 pages that are hidden (Thank you for your payment & Item not available), and they are still showing up by relatedness. Is there a way to hide them completely?

    Additional details:
    1. Using for pages and not posts, so "category and tags" option is not applicable.
    2. In setting page, I only have "display pages" turned on.
    3. site for your reference: http://www.dandimages.com
    4. To Hide the 2 pages I've used another plugin to exclude them from the nav.bar, search bar, and indexing.

    Regards,

    Margie

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

  2. Lab41
    Member
    Posted 1 year ago #

    I would really like to know this as well!

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    I suggest you add those two pages to a particular category, like "hidden". Then you can make all results in that category hidden. Here's how:

    In YARPP settings, show the "The Pool" options. If you don't see it, go to "screen options" in the corner to show "The Pool." Then you can disallow results with the "hidden" category and save. That should do the trick.

  4. asocalguy
    Member
    Posted 1 year ago #

    I'm not an expert with your plugin, by any means, but I've looked at the plugin code and it seems like it would be very easy to alter the display_related() function in class-core.php to accept a parameter that contains a list of IDs to exclude. It would be similarly straightforward to add a textbox in the settings where users could could enter IDs to be excluded.

    I'm not sure why this isn't an obvious feature. Using tags and categories is a problematic workaround since you end up with a stray category (for example) that would show up in places you don't want to see it all to support using your plugin.

    If nothing else, it would be nice if the UL/LIs that your plugin produces had the an id or class property on them that included the post/page ID so that we could at least hide the LIs for particular pages/posts using CSS.

    Thanks!
    Kevin

  5. Lab41
    Member
    Posted 1 year ago #

    I would prefer a list of ID's to exclude, since other plugins work on this basis and I have a list of these ID's to exclude.

    I'm tired of my download page, my email confirmation page, and other pages being recommended! I also don't want to tag them as "hidden" and then it's the first thing people will click on! (and I have to then exclude the hidden category from search)

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Making the APIs filter out certain post IDs is easy to add, but the question is how this would be presented to users in the settings page. Creating an interface for this is nontrivial, and I'm extremely weary of adding more options to the settings page.

    That said, if having such control programmaticaly is something that would be helpful, I could easily expose something like that. Let me know what you think.

  7. Lab41
    Member
    Posted 1 year ago #

    Hi Mitcho

    Keep the interface like it is...easy to follow.

    Just have 1 checkbox:
    "If featured image not available, use first image found instead?" "Yes/No"

    :-)

    That would be epic and make this plugin a complete solution. I like that it is lightweight.

  8. carlsandburg
    Member
    Posted 5 months ago #

    I don't think the suggestion posted above works (i could be wrong):
    ======================================================================
    I suggest you add those two pages to a particular category, like "hidden". Then you can make all results in that category hidden. Here's how:

    In YARPP settings, show the "The Pool" options. If you don't see it, go to "screen options" in the corner to show "The Pool." Then you can disallow results with the "hidden" category and save. That should do the trick.
    =======================================================================

    There are no Categories for pages by default in WordPress, only posts.
    I want to exclude Pages not Posts.

    I installed a plugin that adds Categories, but i still can't exclude certain ones with YARPP, for reasons possibly explained here:

    http://wordpress.org/support/topic/problems-with-yarpp?replies=5

    Anybody have a solution? Even if i have to change the code....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic